@charset "UTF-8";

:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #777777;
    --line: #d7d7d7;
    --accent: #111111;
    --button-bg: #1f4d45;
    --button-text: #ffffff;
    --panel: #f1f1f1;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Naskh Arabic", "Amiri", serif;
    line-height: 1.8;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    max-width: 840px;
    margin: 48px auto 80px;
    padding: 0 24px;
    padding-top: 14px;
}

.shell {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 24px;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 1px solid var(--text);
    border-bottom: 1px solid rgba(31, 77, 69, 0.25);
    background-color: #1f4d45;
    background-image:
        linear-gradient(180deg, #1f4d45 0%, #173b35 65%),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: auto, 140px 140px;
    box-shadow: 0 10px 24px -24px rgba(0, 0, 0, 0.35);
}

.top-header .brand a,
.top-header .nav-links a,
.top-header .nav-search input {
    color: #ffffff;
}

.top-header .nav-search {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.top-header .nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 0 18px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.brand a {
    color: var(--text);
    text-decoration: none;
}

.brand a,
.site-title {
    font-family: "Noto Kufi Arabic", "Noto Naskh Arabic", serif;
    letter-spacing: 0.2px;
}

.brand-sub {
    font-size: 12px;
    color: var(--muted);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.nav-links a {
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}


.nav-links a:hover,
.nav-links a.is-active {
    background: rgba(255, 255, 255, 0.9);
    color: #1f4d45;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.nav-search input {
    width: 220px;
    max-width: 100%;
    border: none;
    border-bottom: none;
    background: transparent;
    padding: 6px 0;
    font-size: 14px;
    font-family: inherit;
}

.nav-search button {
    display: none;
}

.nav-search input:focus {
    outline: none;
}

.nav-search:focus-within {
    border-bottom-color: #ffffff;
}

.form-search {
    display: flex;
    align-items: center;
    gap: 10px;
    /* border-bottom: 1px solid var(--line); */
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.form-search input {
    /* width: 220px; */
    max-width: 100%;
    border: none;
    border-bottom: 1px solid #1F4D45;
    background: transparent;
    padding: 6px 0;
    font-size: 14px;
    font-family: inherit;
}


.form-search input:focus {
    outline: none;
}

.form-search:focus-within {
    border-bottom-color: #ffffff;
}

.site-header {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: 18px 0;
    margin-bottom: 32px;
}

.site-title {
    font-size: 26px;
    margin: 0 0 8px;
    font-weight: 600;
}

.site-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.section-title {
    font-size: 22px;
    margin: 18px 0 12px;
    font-weight: 600;
}

.form-page {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.card {
    border: 1px solid var(--line);
    padding: 16px 18px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line);
    display: block;
    margin-bottom: 16px;
}

.profile-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.profile-hero {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 18px 30px -26px rgba(0, 0, 0, 0.4);
}

.profile-media {
    width: 180px;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f5f5f5;
}

.profile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 77, 69, 0.2), rgba(31, 77, 69, 0.05));
}

.profile-identity {
    flex: 1;
}

.profile-name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
}

.profile-id {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.profile-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
    margin-bottom: 16px;
}

.profile-quick-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
}

.profile-quick-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.profile-quick-item strong {
    font-size: 14px;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.info-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: #ffffff;
}

.info-panel.full {
    grid-column: 1 / -1;
}

.info-panel h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    color: var(--muted);
}

.info-panel p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.9;
}

.filter-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 18px 22px;
    margin: 22px 0 28px;
    background: #ffffff;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.results-count {
    font-size: 13px;
    color: var(--muted);
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.compact-grid.single {
    grid-template-columns: minmax(200px, 420px);
    justify-content: center;
}

.compact-card {
    border: 1px solid rgba(31, 77, 69, 0.2);
    border-radius: 18px;
    padding: 16px 14px;
    background: #ffffff;
    box-shadow: 0 16px 26px -24px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    cursor: pointer;
    font: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.compact-card:hover {
    text-decoration: none;
}

.compact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 34px -26px rgba(0, 0, 0, 0.5);
    border-color: rgba(31, 77, 69, 0.35);
}

.compact-card:focus-visible {
    outline: 2px solid rgba(31, 77, 69, 0.35);
    outline-offset: 3px;
}

.compact-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.compact-avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 77, 69, 0.25), rgba(31, 77, 69, 0.08));
}

.compact-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.6;
}

.compact-meta {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}


.filter-panel .button.secondary {
    border-color: var(--button-bg);
    color: var(--button-bg);
    background: #ffffff;
    padding: 8px 16px;
    font-size: 14px;
}

.filter-panel .button.secondary:hover {
    background: var(--button-bg);
    color: #ffffff;
    text-decoration: none;
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.pagination {
    gap: 6px;
}

.pagination .page-link {
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text);
    padding: 6px 12px;
}

.pagination .page-link:hover {
    background: rgba(31, 77, 69, 0.08);
    border-color: var(--button-bg);
    color: var(--button-bg);
}

.pagination .page-item.active .page-link {
    background: var(--button-bg);
    border-color: var(--button-bg);
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    color: var(--muted);
    background: #ffffff;
    border-color: var(--line);
}

.meta {
    color: var(--muted);
    font-size: 14px;
}

.field {
    margin: 18px 0;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-bottom-color: #c20000;
}

.field-error {
    color: #c20000;
    font-size: 12px;
    margin-top: 6px;
}

.field.has-warning input,
.field.has-warning select,
.field.has-warning textarea {
    border-bottom-color: #b07a00;
}

.field-warning {
    color: #b07a00;
    font-size: 12px;
    margin-top: 6px;
}

.field label {
    display: block;
    color: var(--text);
    font-size: 15px;
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid var(--button-bg);
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted);
}

.field select {
    border-bottom: 1px solid var(--button-bg);
    background: transparent;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.required {
    color: #c20000;
    margin-right: 6px;
    font-weight: 600;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.form-actions .hint {
    color: var(--muted);
    font-size: 13px;
}

.button {
    display: inline-block;
    padding: 10px 18px;
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 999px;
    font-size: 15px;
    border: 1px solid var(--button-text);
    cursor: pointer;
}

.button:hover {
    background: #ffffff;
    color: var(--button-bg);
    text-decoration: none;
    border-color: var(--button-bg);
}

.button.small {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;
}

.button.secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--line);
}

.button.secondary:hover {
    background: var(--button-bg);
    color: #ffffff;
    text-decoration: none;
}

.upload-box {
    border: 1px dashed #9c9c9c;
    background: var(--panel);
    padding: 28px 16px;
    border-radius: 6px;
    text-align: center;
    margin-top: 8px;
    cursor: pointer;
}

.upload-box strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.upload-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.upload-input {
    display: none;
}

.upload-filename {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

.age-select {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.age-select input[type="text"] {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
}

.age-select input[type="text"]:focus {
    outline: none;
}

.age-select-toggle {
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.age-select-list {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: calc(100% + 6px);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px;
    margin: 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    z-index: 20;
}

.age-select-list li {
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.age-select-list li:hover,
.age-select-list li.is-active {
    background: rgba(31, 77, 69, 0.1);
}

.age-select.is-open .age-select-list {
    display: block;
}

/* Admin DataTables */

.stepper {
    margin-top: 8px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.form-shell {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.step {
    display: none;
    padding-top: 8px;
}

.step.active {
    display: block;
}

.step-title {
    font-size: 20px;
    margin: 18px 0 12px;
    font-weight: 600;
}

.step-indicator {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.step-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.step-actions .hint {
    color: var(--muted);
    font-size: 13px;
}

.step-arrows {
    position: fixed;
    left: 24px;
    bottom: 60px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: 900;
}

.step-arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: var(--button-bg);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 18px -14px rgba(0, 0, 0, 0.55);
}

.step-arrow i {
    display: inline-block;
    margin-top: 9px;
    margin-right: 6px;
}

.step-arrow:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.button-row {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.divider {
    border-top: 1px solid var(--line);
    margin: 32px 0;
}

.list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.list li:last-child {
    border-bottom: none;
}

.site-footer {
    border-top: 1px solid var(--button-bg);
    padding: 36px 0 42px;
    background-color: #1f4d45;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 140px 140px;
    box-shadow: 0 -10px 24px -24px rgba(0, 0, 0, 0.35);
    color: var(--muted);
    font-size: 14px;
}

.site-footer,
.site-footer .footer-title,
.site-footer .footer-text,
.site-footer .footer-list a,
.site-footer .footer-note {
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 32px;
    margin-bottom: 16px;
}

.footer-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-text {
    margin: 0;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 6px;
}

.footer-list a {
    color: var(--text);
}

.footer-note {
    color: #9a9a9a;
    font-size: 13px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

@media (max-width: 640px) {
    .page {
        margin: 32px auto 60px;
        padding: 0 18px;
    }

    .shell {
        padding: 0px 18px 0px 18px !important;
        margin-top: 20px !important;
    }


    .site-title {
        font-size: 22px;
    }

    .nav-search {
        width: 100%;
        display: none;
    }

    .nav-search input {
        flex: 1;
    }

    .nav-search button {
        display: inline-block;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 12px;
        display: none;
    }

    .nav-links a {
        text-align: center;
    }

    .nav-links.is-open {
        display: flex;
    }


    .nav-toggle {
        display: inline-flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .profile-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-media {
        width: 100%;
        height: 220px;
    }

    .profile-quick {
        grid-template-columns: 1fr;
    }

    .profile-detail-grid {
        grid-template-columns: 1fr;
    }

    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* .nav-left{
        padding-bottom: 20px;
    } */

    .form-grid-compact .row {
        --bs-gutter-x: 1rem;
    }

    .form-grid-compact .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

}
