/* =====================================================
   RTS STAFF DATABASE
   COMPLETE WEBSITE STYLESHEET
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0c0d12;
    color: white;
}


/* =====================================================
   TOP BAR
===================================================== */

.topbar {
    position: sticky;
    top: 0;

    width: 100%;
    min-height: 76px;

    background: #191b21;

    border-top: 3px solid #b58a28;
    border-bottom: 1px solid #30333c;

    display: flex;
    align-items: center;

    padding: 0 40px;

    z-index: 1000;
}


/* =====================================================
   LOGO
===================================================== */

.logo {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 220px;

    font-size: 14px;
    font-weight: 700;
}

.rts-logo {
    width: 40px;
    height: 40px;

    object-fit: contain;

    border-radius: 8px;

    display: block;
}


/* =====================================================
   NAVIGATION
===================================================== */

.navigation {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-left: auto;
    margin-right: 30px;
}

.nav-link {
    text-decoration: none;

    color: #9297a4;

    padding: 11px 14px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    transition: 0.2s;
}

.nav-link:hover {
    color: white;
    background: #252832;
}

.nav-link.active {
    color: white;
    background: #292d38;
}


/* =====================================================
   DATABASE STATUS
===================================================== */

.database-status {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #888e9b;

    font-size: 12px;

    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;

    background: #48b57a;

    border-radius: 50%;
}


/* =====================================================
   MAIN
===================================================== */

.main {
    min-height: calc(100vh - 76px);
}


/* =====================================================
   HERO / HOME PAGE
===================================================== */

.hero {
    min-height: 480px;

    position: relative;

    display: flex;
    align-items: center;

    padding: 80px;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(12, 13, 18, 0.96),
            rgba(12, 13, 18, 0.72),
            rgba(12, 13, 18, 0.88)
        ),
        url("background.jpg");

    background-size: cover;
    background-position: center;

    border-bottom: 5px solid #b58a28;
}

.hero-content {
    max-width: 720px;

    position: relative;

    z-index: 2;
}

.eyebrow {
    color: #b58a28;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: 56px;

    line-height: 1.05;

    margin-bottom: 20px;
}

.hero-description {
    max-width: 600px;

    color: #a6aab5;

    font-size: 16px;

    line-height: 1.7;

    margin-bottom: 30px;
}


/* =====================================================
   HERO BUTTONS
===================================================== */

.hero-buttons {
    display: flex;

    gap: 12px;
}

.primary-button {
    padding: 13px 21px;

    background: #b58a28;

    color: #111;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 700;

    transition: 0.2s;
}

.primary-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.1);
}

.secondary-button {
    padding: 13px 21px;

    background: #242730;

    color: white;

    border: 1px solid #353945;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 600;

    transition: 0.2s;
}

.secondary-button:hover {
    background: #303440;
}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

.section {
    padding: 60px 55px;
}

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 28px;
}

.section-label {
    font-size: 10px;

    letter-spacing: 1.5px;

    font-weight: 800;

    opacity: 0.7;

    margin-bottom: 6px;
}

.section-heading h2 {
    font-size: 30px;
}


/* =====================================================
   DEPARTMENTS
===================================================== */

.departments-section {
    background: #941f28;
}

.view-button {
    background: rgba(0, 0, 0, 0.2);

    color: white;

    padding: 10px 15px;

    border-radius: 7px;

    text-decoration: none;

    font-weight: 600;

    transition: 0.2s;
}

.view-button:hover {
    background: rgba(0, 0, 0, 0.35);
}

.department-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 18px;
}

.department-card {
    background: rgba(0, 0, 0, 0.22);

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 12px;

    padding: 23px;

    cursor: pointer;

    transition: 0.2s;
}

.department-card:hover {
    transform: translateY(-5px);

    background: rgba(0, 0, 0, 0.32);

    border-color:
        rgba(255, 255, 255, 0.35);
}

.department-logo {
    width: 58px;
    height: 58px;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.12);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 18px;
}

.department-card h3 {
    font-size: 17px;

    margin-bottom: 8px;
}

.department-card p {
    color:
        rgba(255, 255, 255, 0.7);

    font-size: 13px;

    line-height: 1.6;
}


/* =====================================================
   STAFF SPOTLIGHTS
===================================================== */

.spotlight-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 18px;

}

.spotlight-card {

    background: #171920;

    border: 1px solid #292c35;

    border-radius: 13px;

    padding: 28px;

    text-align: center;

}

.spotlight-label {

    color: #b58a28;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

    margin-bottom: 18px;

}

.spotlight-content .staff-empty {

    padding: 20px 0;

}

.spotlight-avatar {

    width: 64px;

    height: 64px;

    margin: 0 auto 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #292d38;

    color: #b58a28;

    font-weight: 800;

    font-size: 18px;

    overflow: hidden;

}

.spotlight-content h3 {

    font-size: 18px;

    margin-bottom: 4px;

}

.spotlight-rank {

    color: #858b98;

    font-size: 13px;

    margin-bottom: 10px;

}

.spotlight-department {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    color: #9297a4;

    font-size: 13px;

}

.spotlight-content {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 16px;

}

.spotlight-person {

    display: flex;

    flex-direction: column;

    align-items: center;

    width: 110px;

}

.spotlight-person .spotlight-avatar {

    width: 52px;

    height: 52px;

    margin-bottom: 8px;

    font-size: 14px;

}

.spotlight-person h4 {

    font-size: 13px;

    margin-bottom: 2px;

    text-align: center;

}

.spotlight-person p {

    color: #858b98;

    font-size: 11px;

    text-align: center;

}


/* =====================================================
   SOCIAL MEDIA
===================================================== */

.social-section {
    background: #174c91;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.social-card {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    color: white;
    display: block;
}

.social-card:hover {
    transform: translateY(-4px);
    background: rgba(0, 0, 0, 0.32);
    border-color: rgba(255, 255, 255, 0.35);
}

.social-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    display: block;
}

.social-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 28px;
    font-weight: 800;
}

.social-card-title {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    padding: 25px 55px;

    display: flex;

    justify-content: space-between;

    color: #666b77;

    font-size: 11px;

    background: #0c0d12;
}


/* =====================================================
   GENERAL PAGES
===================================================== */

.page {
    max-width: 1400px;

    margin: 0 auto;

    padding: 60px 55px;
}

.page-header {
    margin-bottom: 45px;
}

.page-header h1 {
    font-size: 42px;

    margin-bottom: 12px;
}

.page-header > p:last-child {
    color: #8f95a2;

    line-height: 1.6;
}


/* =====================================================
   FILTERS
===================================================== */

.filters {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    padding: 20px;

    margin-bottom: 35px;

    background: #171920;

    border:
        1px solid
        #292c35;

    border-radius: 12px;
}

.filters input,
.filters select {
    padding: 12px 14px;

    background: #22252e;

    color: white;

    border:
        1px solid
        #343844;

    border-radius: 8px;

    outline: none;
}

.filters input {
    min-width: 280px;
}

.filters select {
    cursor: pointer;
}


/* =====================================================
   STAFF STATISTICS
===================================================== */

.statistics-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 35px;

}

.stat-card {

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 24px;

    background: #171920;

    border:
        1px solid
        #292c35;

    border-radius: 12px;

    transition: 0.2s;

}

.stat-card:hover {

    transform: translateY(-3px);

    border-color: #414550;

}

.stat-icon {

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #252832;

    border-radius: 10px;

    font-size: 19px;

}

.stat-label {

    color: #858b98;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 5px;

}

.stat-card h2 {

    font-size: 28px;

    margin-bottom: 3px;

}

.stat-description {

    color: #666b77;

    font-size: 11px;

}


/* =====================================================
   STAFF TABLE
===================================================== */

.staff-table-container {

    width: 100%;

    overflow-x: auto;

    background: #171920;

    border:
        1px solid
        #292c35;

    border-radius: 12px;

}

.staff-table-header {

    min-width: 950px;

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.2fr
        1fr
        1fr
        0.8fr;

    padding: 17px 20px;

    background: #20232b;

    color: #858b98;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.7px;

    border-bottom:
        1px solid
        #30333c;

}

.staff-table-body {

    min-width: 950px;

}

.staff-row {

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.2fr
        1fr
        1fr
        0.8fr;

    align-items: center;

    padding: 17px 20px;

    border-bottom:
        1px solid
        #242730;

    font-size: 13px;

    transition: 0.15s;

}

.staff-row:last-child {

    border-bottom: none;

}

.staff-row:hover {

    background: #1d2027;

}

.staff-username {

    font-weight: 700;

    color: white;

}

.staff-rank {

    color: #c1c5ce;

}

.staff-status {

    display: inline-flex;

    width: fit-content;

    padding: 5px 9px;

    border-radius: 6px;

    background: #252832;

    color: #b9bec8;

    font-size: 11px;

}

.staff-department-cell {

    color: #9297a4;

}

.staff-date {

    color: #858b98;

    font-size: 12px;

}

.staff-service {

    color: #b58a28;

    font-weight: 700;

}


/* =====================================================
   EMPTY STAFF LIST
===================================================== */

.staff-empty {

    padding: 60px 20px;

    text-align: center;

    color: #686e7a;

}

.staff-empty h3 {

    color: #9ca1ac;

    margin-bottom: 8px;

}


/* =====================================================
   DEPARTMENT PROFILE
===================================================== */

.department-profile {

    display: flex;

    align-items: center;

    gap: 30px;

    padding: 35px;

    margin-bottom: 50px;

    background: #941f28;

    border-radius: 15px;

}

.large-department-logo {

    width: 110px;

    height: 110px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(0, 0, 0, 0.2);

    border-radius: 20px;

    font-size: 40px;

    font-weight: 800;

}

.department-profile h1 {

    font-size: 40px;

    margin-bottom: 10px;

}

.department-profile p:last-child {

    color:
        rgba(255, 255, 255, 0.75);

    max-width: 650px;

    line-height: 1.6;

}


/* =====================================================
   PROFILE SECTIONS
===================================================== */

.profile-section {

    margin-bottom: 55px;

}

.profile-section h2 {

    font-size: 25px;

    margin-bottom: 20px;

}


/* =====================================================
   DEPARTMENT HEAD
===================================================== */

.head-card {

    display: flex;

    align-items: center;

    gap: 18px;

    max-width: 500px;

    padding: 20px;

    background: #171920;

    border:
        1px solid
        #292c35;

    border-radius: 12px;

}

.profile-avatar {

    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #292d38;

    color: #aaa;

    font-size: 10px;

}

.head-card h3 {

    margin-bottom: 5px;

}

.head-card p {

    color: #858b98;

    font-size: 13px;

}


/* =====================================================
   SENIOR STAFF
===================================================== */

.senior-staff-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(200px, 1fr)
        );

    gap: 15px;

}

.senior-card {

    padding: 22px;

    background: #171920;

    border:
        1px solid
        #292c35;

    border-radius: 12px;

    text-align: center;

}

.senior-card .profile-avatar {

    margin: 0 auto 15px;

}

.senior-card h3 {

    font-size: 15px;

    margin-bottom: 5px;

}

.senior-card p {

    color: #858b98;

    font-size: 12px;

}


/* =====================================================
   ADMIN / EDITOR PANELS
===================================================== */

.admin-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 20px;

}

.admin-card {

    padding: 28px;

    background: #171920;

    border:
        1px solid
        #292c35;

    border-radius: 13px;

    transition: 0.2s;

}

.admin-card:hover {

    border-color: #5865f2;

    transform: translateY(-3px);

}

.admin-card h2 {

    font-size: 20px;

    margin-bottom: 10px;

}

.admin-card p {

    color: #858b98;

    font-size: 13px;

    line-height: 1.6;

    margin-bottom: 20px;

}

.admin-card button {

    padding: 10px 15px;

    background: #292d38;

    color: white;

    border-radius: 7px;

    font-weight: 600;

    cursor: pointer;

    border: none;

}

.admin-card button:hover {

    background: #5865f2;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .topbar {

        padding: 0 20px;

    }

    .logo {

        min-width: auto;

    }

    .database-status {

        display: none;

    }

    .statistics-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 700px) {

    .topbar {

        min-height: 70px;

        padding: 10px 15px;

        flex-wrap: wrap;

        gap: 10px;

    }

    .navigation {

        width: 100%;

        overflow-x: auto;

        order: 3;

        padding-bottom: 5px;

    }

    .nav-link {

        white-space: nowrap;

    }

    .hero {

        min-height: 420px;

        padding: 50px 30px;

    }

    .hero h1 {

        font-size: 40px;

    }

    .hero-buttons {

        flex-wrap: wrap;

    }

    .section {

        padding: 45px 25px;

    }

    .section-heading {

        align-items: flex-start;

        gap: 15px;

        flex-direction: column;

    }

    .page {

        padding: 40px 20px;

    }

    .page-header h1 {

        font-size: 34px;

    }

    .department-profile {

        flex-direction: column;

        align-items: flex-start;

    }

    .department-profile h1 {

        font-size: 32px;

    }

    footer {

        padding: 25px;

        flex-direction: column;

        gap: 10px;

    }

}


@media (max-width: 600px) {

    .statistics-grid {

        grid-template-columns: 1fr;

    }

}

/* =====================================================
   LOGIN SYSTEM
===================================================== */

.login-container {

    min-height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.login-card {

    width: 100%;

    max-width: 440px;

    padding: 40px;

    background: #171920;

    border: 1px solid #292c35;

    border-radius: 15px;

    text-align: center;

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.25);

}


.login-logo {

    width: 75px;

    height: 75px;

    object-fit: contain;

    margin-bottom: 25px;

}


.login-card h1 {

    font-size: 32px;

    margin-bottom: 12px;

}


.login-card > p:not(.section-label) {

    color: #858b98;

    font-size: 13px;

    line-height: 1.6;

    margin-bottom: 25px;

}


.login-card form {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


.login-card input {

    width: 100%;

    padding: 14px 15px;

    background: #22252e;

    color: white;

    border: 1px solid #343844;

    border-radius: 8px;

    outline: none;

    font-size: 14px;

}


.login-card input:focus {

    border-color: #5865f2;

}


.login-button {

    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 8px;

    background: #b58a28;

    color: #111;

    font-weight: 800;

    cursor: pointer;

    transition: 0.2s;

}


.login-button:hover {

    filter: brightness(1.1);

    transform: translateY(-1px);

}


.login-error {

    color: #e05252;

    font-size: 12px;

    min-height: 16px;

}


/* =====================================================
   PANEL
===================================================== */

.hidden {

    display: none !important;

}


.panel-content {

    width: 100%;

}


.panel-toolbar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 15px 18px;

    margin-bottom: 25px;

    background: #171920;

    border: 1px solid #292c35;

    border-radius: 10px;

    color: #858b98;

    font-size: 13px;

}


.logout-button {

    padding: 9px 15px;

    background: #292d38;

    color: white;

    border: none;

    border-radius: 7px;

    cursor: pointer;

    font-weight: 600;

}


.logout-button:hover {

    background: #941f28;

}

/* =====================================================
   ADMIN MANAGEMENT
===================================================== */

.management-section {

    margin-bottom: 45px;

    background: #171920;

    border: 1px solid #292c35;

    border-radius: 13px;

    overflow: hidden;

}


.management-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 25px;

    border-bottom: 1px solid #292c35;

}


.management-header h2 {

    font-size: 24px;

    margin-bottom: 7px;

}


.management-header p:last-child {

    color: #858b98;

    font-size: 13px;

}


.management-add-button {

    padding: 11px 17px;

    background: #b58a28;

    color: #111;

    border: none;

    border-radius: 7px;

    font-weight: 800;

    cursor: pointer;

    white-space: nowrap;

}


.management-add-button:hover {

    filter: brightness(1.1);

}


.management-list {

    padding: 8px 20px;

}


.management-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 17px 5px;

    border-bottom: 1px solid #242730;

}


.management-item:last-child {

    border-bottom: none;

}


.management-name {

    font-size: 14px;

    font-weight: 700;

}


.management-actions {

    display: flex;

    gap: 8px;

}


.management-button {

    padding: 8px 12px;

    border: none;

    border-radius: 6px;

    background: #292d38;

    color: white;

    cursor: pointer;

    font-size: 12px;

    font-weight: 600;

}


.management-button:hover {

    background: #3a3e4a;

}


.management-button.delete:hover {

    background: #941f28;

}


.management-empty {

    padding: 30px;

    text-align: center;

    color: #686e7a;

}


@media (max-width: 700px) {

    .management-header {

        align-items: flex-start;

        flex-direction: column;

    }


    .management-item {

        align-items: flex-start;

        flex-direction: column;

    }

}


/* =====================================================
   STATUS COLOR PICKER
===================================================== */

.management-status-row {

    display: flex;

    align-items: center;

    gap: 12px;

}

.status-color-input {

    width: 36px;

    height: 36px;

    padding: 0;

    border: 1px solid #343844;

    border-radius: 8px;

    background: transparent;

    cursor: pointer;

}


/* =====================================================
   LOGO / AVATAR PREVIEW BOX
===================================================== */

.department-logo-preview {

    margin-bottom: 18px;

}

.department-logo-preview > span {

    display: block;

    color: #c7cad2;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 8px;

}

.department-logo-preview-box {

    width: 80px;

    height: 80px;

    border-radius: 10px;

    background: #22252e;

    border: 1px solid #343844;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    color: #686e7a;

    font-size: 11px;

    text-align: center;

}

/* When reused directly as the avatar preview box (no label span wrapper) */
#staffAvatarPreview.department-logo-preview {

    width: 80px;

    height: 80px;

    border-radius: 10px;

    background: #22252e;

    border: 1px solid #343844;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    color: #686e7a;

    font-size: 11px;

    text-align: center;

}


/* =====================================================
   STAFF MANAGEMENT
===================================================== */

.staff-management-search {

    padding: 18px 20px;

    border-bottom: 1px solid #292c35;

}


.staff-management-search input {

    width: 100%;

    max-width: 400px;

    padding: 12px 14px;

    background: #22252e;

    color: white;

    border: 1px solid #343844;

    border-radius: 8px;

    outline: none;

}


.editor-staff-list {

    padding: 10px 20px;

}


.editor-staff-item {

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.2fr
        1fr
        1fr
        auto;

    align-items: center;

    gap: 15px;

    padding: 17px 5px;

    border-bottom: 1px solid #242730;

}


.editor-staff-item:last-child {

    border-bottom: none;

}


.editor-staff-username {

    font-weight: 700;

}


.editor-staff-detail {

    color: #858b98;

    font-size: 12px;

}


.editor-staff-service {

    color: #b58a28;

    font-weight: 700;

    font-size: 12px;

}


.editor-staff-actions {

    display: flex;

    gap: 6px;

}


.editor-action-button {

    padding: 8px 10px;

    background: #292d38;

    color: white;

    border: none;

    border-radius: 6px;

    cursor: pointer;

    font-size: 11px;

    font-weight: 700;

}


.editor-action-button:hover {

    background: #3a3e4a;

}


.editor-action-button.delete:hover {

    background: #941f28;

}


.editor-empty {

    padding: 50px 20px;

    text-align: center;

    color: #686e7a;

}


/* =====================================================
   MODAL
===================================================== */

.modal-overlay {

    position: fixed;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.75);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 2000;

}


.staff-form-modal {

    width: 100%;

    max-width: 560px;

    max-height: 90vh;

    overflow-y: auto;

    background: #171920;

    border: 1px solid #343844;

    border-radius: 14px;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.5);

}


.modal-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    padding: 25px;

    border-bottom: 1px solid #292c35;

}


.modal-header h2 {

    font-size: 23px;

}


.modal-close {

    width: 34px;

    height: 34px;

    border: none;

    border-radius: 7px;

    background: #292d38;

    color: white;

    font-size: 22px;

    cursor: pointer;

}


.modal-close:hover {

    background: #941f28;

}


/* =====================================================
   FORM
===================================================== */

#staffForm {

    padding: 25px;

}


.form-group {

    margin-bottom: 18px;

}


.form-group label {

    display: block;

    color: #c7cad2;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 7px;

}


.form-group input,

.form-group select {

    width: 100%;

    padding: 12px 13px;

    background: #22252e;

    color: white;

    border: 1px solid #343844;

    border-radius: 8px;

    outline: none;

}


.form-group input:focus,

.form-group select:focus {

    border-color: #5865f2;

}


.form-group small {

    display: block;

    margin-top: 6px;

    color: #686e7a;

    font-size: 11px;

}


/* =====================================================
   SERVICE PREVIEW
===================================================== */

.service-preview {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px;

    margin-bottom: 20px;

    background: #20232b;

    border: 1px solid #30333c;

    border-radius: 8px;

}


.service-preview span {

    color: #858b98;

    font-size: 12px;

}


.service-preview strong {

    color: #b58a28;

}


/* =====================================================
   MODAL BUTTONS
===================================================== */

.modal-buttons {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding-top: 5px;

}


.cancel-button,

.save-button {

    padding: 11px 16px;

    border: none;

    border-radius: 7px;

    cursor: pointer;

    font-weight: 700;

}


.cancel-button {

    background: #292d38;

    color: white;

}


.cancel-button:hover {

    background: #3a3e4a;

}


.save-button {

    background: #b58a28;

    color: #111;

}


.save-button:hover {

    filter: brightness(1.1);

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

    .editor-staff-item {

        grid-template-columns:
            1fr
            1fr;

        gap: 8px;

        padding: 20px 5px;

    }

    .editor-staff-actions {

        grid-column: 1 / -1;

        margin-top: 5px;

    }

}

/* =====================================================
   STAFF DEPARTMENT LOGO
===================================================== */

.staff-department-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.staff-department-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}