/* =========================================================
   ADMIN PAGES
   Sadece sayfa yonetimi ekrani icin
   ========================================================= */

.admin-pages-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.admin-pages-page .admin-page-header {
    margin-bottom: 0;
}

.admin-pages-page .admin-page-title {
    margin: 0;
}

.admin-pages-page .admin-page-description {
    max-width: 780px;
}

/* =========================================================
   CREATE SECTION
   ========================================================= */

.admin-pages-create-section {
    display: block;
}

.admin-pages-create-section .admin-card {
    overflow: visible;
}

.admin-pages-create-section .admin-card__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-pages-create-section .admin-form {
    gap: 18px;
}

.admin-pages-create-section .admin-form-row {
    align-items: start;
}

.admin-pages-create-section .admin-form-group {
    min-width: 0;
}

.admin-pages-create-section .admin-input,
.admin-pages-create-section .admin-select,
.admin-pages-create-section .admin-textarea {
    background: #ffffff;
}

.admin-pages-create-section .admin-textarea {
    min-height: 180px;
}

.admin-pages-create-section .admin-form-hint {
    margin-top: 2px;
}

.admin-pages-create-section .admin-form-actions {
    padding-top: 4px;
}

/* =========================================================
   LIST SECTION
   ========================================================= */

.admin-pages-list-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-pages-list-section .admin-section-header {
    margin-bottom: 0;
}

.admin-pages-list-section .admin-section-title {
    margin: 0;
}

/* =========================================================
   TABLE
   ========================================================= */

.admin-pages-list-section .admin-table-wrap {
    overflow: hidden;
}

.admin-pages-list-section .admin-table {
    min-width: 1100px;
}

.admin-pages-list-section .admin-table td {
    vertical-align: middle;
}

.admin-pages-list-section .admin-table th:nth-child(1),
.admin-pages-list-section .admin-table td:nth-child(1) {
    width: 70px;
    white-space: nowrap;
}

.admin-pages-list-section .admin-table th:nth-child(2),
.admin-pages-list-section .admin-table td:nth-child(2) {
    min-width: 160px;
}

.admin-pages-list-section .admin-table th:nth-child(3),
.admin-pages-list-section .admin-table td:nth-child(3) {
    min-width: 220px;
}

.admin-pages-list-section .admin-table th:nth-child(4),
.admin-pages-list-section .admin-table td:nth-child(4) {
    min-width: 200px;
}

.admin-pages-list-section .admin-table th:nth-child(5),
.admin-pages-list-section .admin-table td:nth-child(5) {
    width: 120px;
    white-space: nowrap;
}

.admin-pages-list-section .admin-table th:nth-child(6),
.admin-pages-list-section .admin-table td:nth-child(6) {
    width: 100px;
    white-space: nowrap;
}

.admin-pages-list-section .admin-table th:nth-child(7),
.admin-pages-list-section .admin-table td:nth-child(7) {
    min-width: 220px;
}

.admin-pages-list-section .admin-table th:nth-child(8),
.admin-pages-list-section .admin-table td:nth-child(8) {
    width: 160px;
    white-space: nowrap;
}

.admin-pages-list-section .admin-table td:nth-child(2),
.admin-pages-list-section .admin-table td:nth-child(3),
.admin-pages-list-section .admin-table td:nth-child(4),
.admin-pages-list-section .admin-table td:nth-child(7) {
    color: #222222;
    font-weight: 600;
    word-break: break-word;
}

/* =========================================================
   ACTIONS
   ========================================================= */

.admin-pages-list-section .admin-table__actions {
    justify-content: flex-start;
    gap: 8px;
}

.admin-pages-list-section .admin-btn--sm {
    min-width: 72px;
}

/* =========================================================
   BADGE
   ========================================================= */

.admin-pages-list-section .admin-badge {
    min-width: 74px;
}

/* =========================================================
   EMPTY
   ========================================================= */

.admin-pages-list-section .admin-empty {
    margin-top: 0;
}

/* =========================================================
   VISUAL POLISH
   ========================================================= */

.admin-pages-page .admin-card,
.admin-pages-page .admin-table-wrap {
    background: #ffffff;
}

.admin-pages-page .admin-card__title,
.admin-pages-page .admin-section-title {
    color: #111111;
}

.admin-pages-page .admin-card__subtitle,
.admin-pages-page .admin-section-description {
    color: #666666;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
    .admin-pages-page {
        gap: 22px;
    }

    .admin-pages-list-section .admin-table {
        min-width: 1020px;
    }
}

@media (max-width: 992px) {
    .admin-pages-page {
        gap: 20px;
    }

    .admin-pages-create-section .admin-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-pages-list-section .admin-table {
        min-width: 940px;
    }
}

@media (max-width: 768px) {
    .admin-pages-create-section .admin-form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .admin-pages-create-section .admin-card__header,
    .admin-pages-create-section .admin-card__body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .admin-pages-list-section .admin-section-title {
        font-size: 18px;
    }

    .admin-pages-list-section .admin-table {
        min-width: 860px;
    }
}

@media (max-width: 576px) {
    .admin-pages-page {
        gap: 18px;
    }

    .admin-pages-create-section .admin-card__header,
    .admin-pages-create-section .admin-card__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-pages-create-section .admin-card__title {
        font-size: 17px;
    }

    .admin-pages-list-section .admin-table {
        min-width: 800px;
    }

    .admin-pages-list-section .admin-btn--sm {
        min-width: 68px;
    }
}