/* =========================================================
   GVMCH PHONEBOOK
   MAIN STYLESHEET
========================================================= */

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

:root {
    --primary: #075e42;
    --primary-dark: #034a34;
    --primary-light: #e8f5ef;

    --background: #f4f7f6;
    --card: #ffffff;

    --text: #1f2933;
    --muted: #667085;

    --border: #d9e1e5;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );

    color: white;

    padding: 18px 20px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.header-content {
    max-width: 1100px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.header h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header p {
    margin-top: 5px;
    font-size: 14px;
    opacity: 0.9;
}


/* =========================================================
   HEADER BUTTON
========================================================= */

.login-btn {
    background: white;
    color: var(--primary);

    border: none;
    border-radius: 8px;

    padding: 11px 22px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}


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

.container {
    width: 100%;
    max-width: 1100px;

    margin: auto;

    padding: 35px 20px 50px;

    flex: 1;
}


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

.hero {
    text-align: center;

    padding: 35px 20px;
}

.hero h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.hero p {
    color: var(--muted);
    margin-bottom: 28px;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    display: flex;

    max-width: 720px;

    margin: auto;
}

.search-box input {
    flex: 1;

    padding: 15px 18px;

    border: 1px solid var(--border);

    border-radius: 10px 0 0 10px;

    font-size: 16px;

    outline: none;

    background: white;
}

.search-box input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(7, 94, 66, 0.12);
}

.search-box button {
    background: var(--primary);

    color: white;

    border: none;

    padding: 0 28px;

    border-radius: 0 10px 10px 0;

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

    cursor: pointer;

    transition: 0.2s ease;
}

.search-box button:hover {
    background: var(--primary-dark);
}


/* =========================================================
   DIRECTORY
========================================================= */

.directory-section {
    margin-top: 35px;
}

.section-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
}

.employee-list {
    display: grid;

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

    gap: 20px;
}


/* =========================================================
   EMPLOYEE CARD
========================================================= */

.employee-card {
    background: var(--card);

    border-radius: 14px;

    padding: 22px;

    border: 1px solid #e6ebed;

    box-shadow: var(--shadow);

    transition: 0.2s ease;
}

.employee-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.12);
}

.employee-card h3 {
    color: var(--primary);

    font-size: 18px;

    margin-bottom: 15px;
}

.employee-card p {
    margin: 9px 0;

    color: #555;
}

.employee-card strong {
    color: var(--text);
}


/* =========================================================
   LOGIN / REGISTER PAGE
========================================================= */

.login-section {
    min-height: 620px;

    display: flex;

    justify-content: center;
    align-items: flex-start;

    padding: 30px 0;
}


/* =========================================================
   LOGIN / REGISTER CARD
========================================================= */

.login-card {
    width: 100%;
    max-width: 520px;

    background: white;

    padding: 35px;

    border-radius: 18px;

    border: 1px solid #e5e9eb;

    box-shadow: var(--shadow);
}

.login-card h2 {
    color: var(--primary);

    font-size: 28px;

    text-align: center;

    margin-bottom: 10px;
}

.login-description {
    text-align: center;

    color: var(--muted);

    margin-bottom: 28px;

    line-height: 1.5;
}


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

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

    color: var(--primary-dark);

    margin-top: 25px;
    margin-bottom: 15px;

    padding-bottom: 8px;

    border-bottom: 1px solid #e6ebed;
}


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

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

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

    color: var(--text);
}


/* =========================================================
   INPUTS
========================================================= */

.form-group input,
.form-group select {
    width: 100%;

    padding: 13px 14px;

    font-size: 15px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: white;

    outline: none;

    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(7, 94, 66, 0.12);
}

.form-group input::placeholder {
    color: #98a2a8;
}


/* =========================================================
   LOGIN / REGISTER BUTTON
========================================================= */

.login-submit-btn {
    width: 100%;

    margin-top: 10px;

    padding: 14px;

    background: var(--primary);

    color: white;

    border: none;

    border-radius: 9px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s ease;
}

.login-submit-btn:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}

.login-submit-btn:active {
    transform: translateY(0);
}


/* =========================================================
   LOGIN / REGISTER LINKS
========================================================= */

.login-card a {
    color: var(--primary);

    font-weight: 600;

    text-decoration: none;
}

.login-card a:hover {
    text-decoration: underline;
}

.login-card > p:last-of-type {
    text-align: center;

    color: var(--muted);
}


/* =========================================================
   MESSAGE
========================================================= */

.login-message {
    margin-top: 18px;

    text-align: center;

    font-size: 14px;

    font-weight: 500;
}


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

.loading,
.no-results {
    text-align: center;

    padding: 35px;

    color: var(--muted);
}


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

footer {
    margin-top: auto;

    background: #17201d;

    color: white;

    text-align: center;

    padding: 22px;

    font-size: 14px;
}


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

@media (max-width: 600px) {

    .header {
        padding: 16px;
    }

    .header-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

    .header h1 {
        font-size: 22px;
    }

    .login-btn {
        width: 100%;
    }


    .container {
        padding: 25px 15px 40px;
    }


    .hero {
        padding: 25px 5px;
    }

    .hero h2 {
        font-size: 25px;
    }


    .search-box {
        flex-direction: column;

        gap: 10px;
    }

    .search-box input {
        border-radius: 9px;
    }

    .search-box button {
        border-radius: 9px;

        padding: 14px;
    }


    .section-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }


    .login-section {
        padding: 10px 0 30px;
    }

    .login-card {
        padding: 25px 20px;

        border-radius: 14px;
    }

    .login-card h2 {
        font-size: 24px;
    }

}

/* =========================================================
   ADMIN DASHBOARD
========================================================= */

.admin-container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 40px 20px 60px;

    flex: 1;
}


/* =========================================================
   ADMIN HEADER
========================================================= */

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-label {
    font-size: 14px;
    font-weight: 600;

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

    padding: 10px 14px;

    border-radius: 8px;

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


/* =========================================================
   ADMIN WELCOME
========================================================= */

.admin-welcome {
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );

    color: white;

    border-radius: 18px;

    padding: 30px;

    margin-bottom: 30px;

    box-shadow: var(--shadow);
}

.admin-welcome h2 {
    font-size: 28px;

    margin-bottom: 8px;
}

.admin-welcome p {
    font-size: 15px;

    opacity: 0.9;

    line-height: 1.5;
}


/* =========================================================
   ADMIN DASHBOARD GRID
========================================================= */

.admin-grid {
    display: grid;

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

    gap: 22px;
}


/* =========================================================
   ADMIN CARD
========================================================= */

.admin-card {
    background: var(--card);

    border: 1px solid #e4eaed;

    border-radius: 18px;

    padding: 28px;

    box-shadow: var(--shadow);

    transition: 0.25s ease;

    display: flex;

    flex-direction: column;

    min-height: 260px;
}

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

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   ADMIN CARD ICON
========================================================= */

.admin-card-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 28px;

    background: var(--primary-light);

    border-radius: 14px;

    margin-bottom: 20px;
}


/* =========================================================
   ADMIN CARD CONTENT
========================================================= */

.admin-card h3 {
    font-size: 20px;

    color: var(--primary-dark);

    margin-bottom: 12px;
}

.admin-card p {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.6;

    margin-bottom: 25px;
}


/* =========================================================
   ADMIN ACTION BUTTON
========================================================= */

.admin-action-btn {
    width: 100%;

    margin-top: auto;

    padding: 13px 16px;

    background: var(--primary);

    color: white;

    border: none;

    border-radius: 9px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.admin-action-btn:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);

    box-shadow:
        0 6px 16px rgba(7, 94, 66, 0.25);
}

.admin-action-btn:active {
    transform: translateY(0);
}


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

@media (max-width: 700px) {

    .admin-container {
        padding: 25px 15px 40px;
    }

    .admin-header-actions {
        width: 100%;

        flex-direction: column;

        align-items: stretch;
    }

    .admin-label {
        text-align: center;
    }

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

    .admin-welcome {
        padding: 25px;
    }

    .admin-welcome h2 {
        font-size: 24px;
    }

    .admin-card {
        min-height: 230px;
    }

}

/* ============================================================
   PHONEBOOK ACTION BUTTONS
   ============================================================ */

.phone-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}


.call-btn,
.whatsapp-btn {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 600;

    transition: all 0.2s ease;

    cursor: pointer;
}


/* CALL BUTTON */

.call-btn {
    background: #1b5e4b;
    color: white;
}

.call-btn:hover {
    background: #134536;
    transform: translateY(-2px);
}


/* WHATSAPP BUTTON */

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
}


/* MOBILE SCREEN */

@media (max-width: 500px) {

    .phone-actions {
        flex-direction: column;
    }

}


/* ADMIN TOOLS PREMIUM STYLING START */

/* =========================================================
   ADMIN TOOLS
========================================================= */

.admin-tools-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 30px;

    padding: 10px;

    background: white;

    border: 1px solid #e2e8ec;

    border-radius: 14px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}


.admin-tools-tabs button {
    border: none;

    background: #f1f5f4;

    color: #344054;

    padding: 12px 18px;

    border-radius: 9px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}


.admin-tools-tabs button:hover {
    background: var(--primary-light);

    color: var(--primary-dark);

    transform: translateY(-1px);
}


.admin-tools-tabs button:focus {
    outline: none;

    background: var(--primary);

    color: white;

    box-shadow: 0 5px 15px rgba(7, 94, 66, 0.22);
}


/* =========================================================
   TOOL MODULE
========================================================= */

.tool-module {
    background: white;

    border: 1px solid #e4eaed;

    border-radius: 18px;

    padding: 30px;

    box-shadow: var(--shadow);

    margin-bottom: 30px;

    animation: moduleFadeIn 0.25s ease;
}


@keyframes moduleFadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


.tool-module h2 {
    color: var(--primary-dark);

    font-size: 25px;

    margin-bottom: 10px;
}


.tool-module > p {
    color: var(--muted);

    margin-bottom: 22px;

    line-height: 1.6;
}


/* =========================================================
   ADMIN TOOLS SEARCH
========================================================= */

.tool-module .search-box {
    max-width: 100%;

    margin: 20px 0;
}


.tool-module .search-box input {
    min-height: 50px;
}


.tool-module .search-box button {
    min-width: 120px;
}


/* =========================================================
   ADD EMPLOYEE BUTTON
========================================================= */

#staff > .login-submit-btn {
    margin: 5px 0 25px;

    width: 100%;

    min-height: 52px;

    font-size: 15px;

    letter-spacing: 0.2px;
}


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

#staffForm {
    margin: 25px 0;

    max-width: 650px;

    background: #f8fbfa;

    border: 1px solid #dfe9e5;

    border-radius: 16px;

    padding: 28px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}


#staffForm h3,
#staffForm h2 {
    color: var(--primary-dark);

    margin-bottom: 20px;
}


#staffForm input,
#staffForm select,
#staffForm textarea {
    width: 100%;

    min-height: 46px;

    padding: 12px 14px;

    margin-bottom: 14px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: white;

    color: var(--text);

    font-size: 14px;

    outline: none;

    transition: all 0.2s ease;
}


#staffForm textarea {
    min-height: 90px;

    resize: vertical;
}


#staffForm input:focus,
#staffForm select:focus,
#staffForm textarea:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(7, 94, 66, 0.12);
}


#staffForm button {
    width: 100%;

    min-height: 50px;

    border: none;

    border-radius: 9px;

    background: var(--primary);

    color: white;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}


#staffForm button:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}


/* =========================================================
   STAFF RESULTS
========================================================= */

#staffResults {
    display: grid;

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

    gap: 18px;

    margin-top: 25px;
}


/* Dynamic employee cards */

#staffResults > div {
    background: white;

    border: 1px solid #e2e8ec;

    border-radius: 16px;

    padding: 22px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);

    transition: all 0.2s ease;
}


#staffResults > div:hover {
    transform: translateY(-3px);

    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);

    border-color: #c9ddd5;
}


#staffResults h3 {
    color: var(--primary-dark);

    font-size: 18px;

    margin-bottom: 16px;

    padding-bottom: 12px;

    border-bottom: 1px solid #edf1f2;
}


#staffResults p {
    color: var(--muted);

    margin: 10px 0;

    line-height: 1.5;
}


#staffResults strong {
    color: var(--text);
}


#staffResults button {
    margin-top: 15px;

    padding: 10px 18px;

    border: 1px solid var(--primary);

    border-radius: 8px;

    background: var(--primary-light);

    color: var(--primary-dark);

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}


#staffResults button:hover {
    background: var(--primary);

    color: white;
}


/* =========================================================
   IMPORT HTML
========================================================= */

#import {
    max-width: 750px;
}


#import input[type="file"] {
    width: 100%;

    padding: 16px;

    border: 2px dashed #b8d2c7;

    border-radius: 12px;

    background: #f8fbfa;

    color: var(--muted);

    cursor: pointer;

    margin: 10px 0;
}


#import input[type="file"]:hover {
    border-color: var(--primary);

    background: var(--primary-light);
}


#import .login-submit-btn {
    max-width: 350px;
}


/* =========================================================
   EXPORT
========================================================= */

#export {
    max-width: 750px;
}


#export .login-submit-btn {
    max-width: 350px;
}


/* =========================================================
   WARD / UNIT
========================================================= */

#wards {
    max-width: 850px;
}


#wardList {
    margin-top: 25px;

    display: grid;

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

    gap: 12px;
}


#wardList > div {
    background: #f8fbfa;

    border: 1px solid #dfe9e5;

    border-radius: 10px;

    padding: 14px 16px;
}


/* =========================================================
   DESIGNATIONS
========================================================= */

#designations {
    max-width: 850px;
}


#designationList {
    margin-top: 25px;

    display: grid;

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

    gap: 12px;
}


#designationList > div {
    background: #f8fbfa;

    border: 1px solid #dfe9e5;

    border-radius: 10px;

    padding: 14px 16px;
}


/* =========================================================
   IMPORT RESULT / STATUS
========================================================= */

#importResult {
    margin-top: 20px;

    padding: 15px;

    border-radius: 10px;

    color: var(--text);

    background: #f8fbfa;
}


/* =========================================================
   ADMIN TOOLS MOBILE
========================================================= */

@media (max-width: 700px) {

    .admin-tools-tabs {
        flex-direction: column;
    }


    .admin-tools-tabs button {
        width: 100%;

        text-align: left;
    }


    .tool-module {
        padding: 22px 18px;
    }


    .tool-module h2 {
        font-size: 22px;
    }


    #staffResults {
        grid-template-columns: 1fr;
    }


    #staffForm {
        padding: 20px 16px;
    }


    #wardList,
    #designationList {
        grid-template-columns: 1fr;
    }


    .tool-module .search-box button {
        width: 100%;
    }

}

/* ADMIN TOOLS PREMIUM STYLING END */



/* =========================================================
   STAFF MANAGEMENT PROFESSIONAL UI
   ========================================================= */

#staff {
    width: 100%;
}


/* ---------------------------------------------------------
   STAFF SEARCH
--------------------------------------------------------- */

#staff .search-box {
    display: flex;
    gap: 12px;
    align-items: stretch;

    background: #f8fbfa;

    border: 1px solid #dfe9e5;

    border-radius: 14px;

    padding: 14px;

    margin-bottom: 20px;
}


#staff .search-box input {
    flex: 1;

    min-width: 0;

    height: 52px;

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 0 16px;

    font-size: 15px;

    background: white;
}


#staff .search-box button {
    min-width: 130px;

    border: none;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;
}


#staff .search-box button:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   ADD EMPLOYEE BUTTON
--------------------------------------------------------- */

#staff > .login-submit-btn {
    display: flex;

    align-items: center;

    justify-content: center;

    width: auto;

    min-width: 190px;

    padding: 14px 24px;

    margin: 0 0 25px;

    border-radius: 10px;

    font-weight: 700;

    box-shadow: 0 6px 16px rgba(7, 94, 66, 0.18);
}


/* ---------------------------------------------------------
   EMPLOYEE FORM CONTAINER
--------------------------------------------------------- */

#staffForm {
    max-width: 100%;

    margin: 25px 0;

    padding: 0;

    background: transparent;

    border: none;

    box-shadow: none;
}


#staffForm .login-card {
    max-width: 100%;

    margin: 0;

    padding: 30px;

    background: white;

    border: 1px solid #e2e8ec;

    border-radius: 18px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}


#staffForm h3 {
    font-size: 24px;

    color: var(--primary-dark);

    margin-bottom: 25px;

    padding-bottom: 18px;

    border-bottom: 1px solid #e9efec;
}


/* ---------------------------------------------------------
   FORM FIELDS
--------------------------------------------------------- */

#staffForm input,
#staffForm select,
#staffForm textarea {
    width: 100%;

    min-height: 50px;

    margin-bottom: 15px;

    padding: 12px 15px;

    border: 1px solid #dce5e1;

    border-radius: 10px;

    background: #ffffff;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


#staffForm input:hover,
#staffForm select:hover,
#staffForm textarea:hover {
    border-color: #b7cec4;
}


#staffForm input:focus,
#staffForm select:focus,
#staffForm textarea:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 4px rgba(7, 94, 66, 0.10);
}


#staffForm textarea {
    min-height: 110px;
}


/* ---------------------------------------------------------
   SAVE BUTTON
--------------------------------------------------------- */

#staffForm button.login-submit-btn {
    margin-top: 10px;

    min-height: 54px;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 0.3px;

    box-shadow: 0 8px 20px rgba(7, 94, 66, 0.20);
}


/* ---------------------------------------------------------
   STAFF RESULT GRID
--------------------------------------------------------- */

#staffResults {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(320px, 1fr));

    gap: 20px;

    margin-top: 25px;
}


/* ---------------------------------------------------------
   EMPLOYEE CARD
--------------------------------------------------------- */

#staffResults > div {
    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 250px;

    padding: 24px;

    background: white;

    border: 1px solid #e1e9e5;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.05);

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


#staffResults > div::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: var(--primary);
}


#staffResults > div:hover {
    transform: translateY(-4px);

    border-color: #bdd8cc;

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.10);
}


/* ---------------------------------------------------------
   EMPLOYEE NAME
--------------------------------------------------------- */

#staffResults h3 {
    font-size: 20px;

    font-weight: 700;

    color: var(--primary-dark);

    margin: 5px 0 18px;

    padding-bottom: 14px;

    border-bottom: 1px solid #edf1ef;
}


/* ---------------------------------------------------------
   EMPLOYEE INFORMATION
--------------------------------------------------------- */

#staffResults p {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin: 8px 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.5;
}


#staffResults p strong {
    color: var(--text);

    font-weight: 600;
}


/* ---------------------------------------------------------
   EMPLOYEE ACTION BUTTONS
--------------------------------------------------------- */

#staffResults button {
    flex: 1;

    min-height: 42px;

    margin-top: 18px;

    padding: 10px 14px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;
}


#staffResults button:first-of-type {
    border: 1px solid var(--primary);

    background: var(--primary-light);

    color: var(--primary-dark);
}


#staffResults button:first-of-type:hover {
    background: var(--primary);

    color: white;
}


#staffResults button:last-of-type {
    border: 1px solid #f0b9b9;

    background: #fff5f5;

    color: #b42318;
}


#staffResults button:last-of-type:hover {
    background: #b42318;

    color: white;

    border-color: #b42318;
}


/* ---------------------------------------------------------
   MOBILE RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 700px) {

    #staff .search-box {
        flex-direction: column;
    }


    #staff .search-box button {
        width: 100%;

        min-height: 50px;
    }


    #staff > .login-submit-btn {
        width: 100%;
    }


    #staffForm .login-card {
        padding: 20px;
    }


    #staffResults {
        grid-template-columns: 1fr;
    }


    #staffResults > div {
        padding: 20px;
    }

}


@media (max-width: 450px) {

    #staffForm .login-card {
        padding: 16px;
    }


    #staffForm h3 {
        font-size: 20px;
    }


    #staffResults h3 {
        font-size: 18px;
    }


    #staffResults p {
        flex-direction: column;

        gap: 2px;
    }

}


/* =========================================================
   END STAFF MANAGEMENT PROFESSIONAL UI
========================================================= */



/* =========================================================
   STAFF FORM SECTIONED LAYOUT
========================================================= */

.staff-form-card {
    width: 100%;
    box-sizing: border-box;

    background: white;

    border: 1px solid #e1e9e5;

    border-radius: 20px;

    padding: 32px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}


.staff-form-header {
    margin-bottom: 30px;

    padding-bottom: 20px;

    border-bottom: 1px solid #e7eeea;
}


.staff-form-header h3 {
    margin: 0 0 8px;

    color: var(--primary-dark);

    font-size: 25px;
}


.staff-form-header p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


.staff-section {
    margin-bottom: 28px;

    padding: 22px;

    background: #f8fbfa;

    border: 1px solid #e2ebe6;

    border-radius: 14px;
}


.staff-section-title {
    margin-bottom: 20px;

    color: var(--primary-dark);

    font-size: 15px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}


.staff-form-grid {
    display: grid;

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

    gap: 18px;
}


.staff-field {
    display: flex;

    flex-direction: column;
}


.staff-field-full {
    grid-column: 1 / -1;
}


.staff-field label {
    margin-bottom: 7px;

    color: var(--text);

    font-size: 13px;

    font-weight: 600;
}


.staff-field input,
.staff-field select,
.staff-field textarea {
    width: 100%;

    box-sizing: border-box;

    min-height: 50px;

    margin: 0 !important;

    padding: 12px 14px;

    border: 1px solid #d9e4df;

    border-radius: 9px;

    background: white;

    color: var(--text);

    font-size: 14px;
}


.staff-field textarea {
    min-height: 110px;

    resize: vertical;
}


.staff-field input:focus,
.staff-field select:focus,
.staff-field textarea:focus {
    border-color: var(--primary);

    outline: none;

    box-shadow: 0 0 0 4px rgba(7, 94, 66, 0.10);
}


.staff-form-actions {
    margin-top: 10px;
}


.staff-form-actions button {
    width: 100%;

    min-height: 54px;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 700;
}


@media (max-width: 700px) {

    .staff-form-card {
        padding: 20px;
    }

    .staff-section {
        padding: 16px;
    }

    .staff-form-grid {
        grid-template-columns: 1fr;
    }

    .staff-field-full {
        grid-column: auto;
    }

}


@media (max-width: 450px) {

    .staff-form-card {
        padding: 14px;
    }

    .staff-section {
        padding: 14px;
    }

    .staff-form-header h3 {
        font-size: 21px;
    }

}


/* =========================================================
   END STAFF FORM SECTIONED LAYOUT
========================================================= */



/* =========================================================
   PROFESSIONAL ADMIN EMPLOYEE CARDS
========================================================= */

#staffResults .admin-employee-card {
    display: flex;

    flex-direction: column;

    padding: 0;

    overflow: hidden;

    border: 1px solid #dfe9e5;

    border-radius: 18px;

    background: white;
}


#staffResults .admin-employee-card::before {
    display: none;
}


/* HEADER */

.employee-card-header {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 22px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
}


.employee-avatar {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    border-radius: 50%;

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

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

    color: white;

    font-size: 20px;

    font-weight: 700;
}


.employee-title {
    min-width: 0;
}


#staffResults .employee-title h3 {
    margin: 0 0 4px;

    padding: 0;

    border: none;

    color: white;

    font-size: 19px;

    line-height: 1.3;
}


.employee-id {
    color: rgba(255,255,255,0.75);

    font-size: 12px;
}


/* INFORMATION */

.employee-info-section {
    padding: 16px 20px;

    border-bottom: 1px solid #edf1ef;
}


.employee-section-title {
    margin-bottom: 12px;

    color: var(--primary-dark);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


.employee-info-row {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 7px 0;
}


.employee-label {
    color: var(--muted);

    font-size: 13px;
}


.employee-value {
    max-width: 60%;

    text-align: right;

    color: var(--text);

    font-size: 13px;

    font-weight: 600;

    word-break: break-word;
}


.sensitive-value {
    letter-spacing: 0.5px;
}


/* ACTIONS */

.employee-card-actions {
    display: flex;

    padding: 18px 20px 20px;

    background: #fafcfb;
}


#staffResults .employee-edit-btn {
    width: 100%;

    min-height: 46px;

    margin: 0;

    border: none;

    border-radius: 9px;

    background: var(--primary);

    color: white;

    font-size: 14px;

    font-weight: 700;
}


#staffResults .employee-edit-btn:hover {
    background: var(--primary-dark);

    color: white;

    transform: translateY(-1px);
}


/* MOBILE */

@media (max-width: 500px) {

    .employee-card-header {
        padding: 18px;
    }


    .employee-info-section {
        padding: 15px 18px;
    }


    .employee-card-actions {
        padding: 15px 18px 18px;
    }


    .employee-info-row {
        flex-direction: column;

        gap: 3px;
    }


    .employee-value {
        max-width: 100%;

        text-align: left;
    }

}


/* =========================================================
   END PROFESSIONAL ADMIN EMPLOYEE CARDS
========================================================= */



/* =========================================================
   IMPORT HISTORY
========================================================= */

#importHistory {
    margin-top: 25px;
}


.import-history-card {
    background: white;

    border: 1px solid #e2e8ec;

    border-radius: 14px;

    padding: 20px;

    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}


.import-history-card h3 {
    margin-bottom: 18px;

    color: var(--primary-dark);
}


.import-history-row {
    display: grid;

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

    gap: 10px;

    padding: 14px 0;

    border-bottom: 1px solid #edf1f2;

    font-size: 13px;
}


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


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


@media (max-width: 700px) {

    .import-history-row {

        grid-template-columns: 1fr 1fr;

    }

}



/* ============================================================
   MY PROFILE
============================================================ */

.profile-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    justify-content: center;

    align-items: flex-start;

    overflow-y: auto;

    padding: 30px 15px;

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

}


.profile-modal-content {

    width: 100%;

    max-width: 650px;

    background: white;

    border-radius: 18px;

    padding: 28px;

    margin: auto;

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

}


.profile-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    margin-bottom: 25px;

    padding-bottom: 18px;

    border-bottom:
        1px solid #e5e7eb;

}


.profile-header h2 {

    margin: 0;

    color: var(--primary-dark);

}


.profile-header p {

    margin: 7px 0 0;

    color: var(--muted);

}


.profile-close {

    border: none;

    background: transparent;

    font-size: 32px;

    cursor: pointer;

    line-height: 1;

}


#profileForm {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


#profileForm label {

    margin-top: 10px;

    font-weight: 600;

}


#profileForm input,
#profileForm select,
#profileForm textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 12px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    font-size: 15px;

}


#profileForm textarea {

    resize: vertical;

}


.profile-save-btn {

    margin-top: 22px;

    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 9px;

    background: var(--primary);

    color: white;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

}


.profile-message {

    margin-top: 15px;

    text-align: center;

    font-weight: 600;

}


.profile-security-note {

    margin-top: 25px;

    padding: 16px;

    border-radius: 10px;

    background: #f8fafc;

    border-left:
        4px solid var(--primary);

}


.profile-security-note p {

    margin-bottom: 0;

    color: var(--muted);

}


@media (max-width: 500px) {

    .profile-modal {

        padding: 10px;

    }


    .profile-modal-content {

        padding: 20px;

        border-radius: 14px;

    }

}


/* ============================================================
   GVMCH ADMIN UI - IMPROVED DASHBOARD STYLE
   ============================================================ */

.admin-page,
.admin-tools-page {
    background: #eef1f2;
    min-height: 100vh;
}


.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 60px;
}


.admin-welcome {
    background: linear-gradient(
        135deg,
        #124f3c,
        #17644c
    );

    color: white;

    padding: 30px;

    border-radius: 18px;

    margin-bottom: 26px;

    box-shadow:
        0 12px 28px rgba(0,0,0,0.12);
}


.admin-welcome h2 {
    margin: 0 0 10px;
    font-size: 28px;
}


.admin-welcome p {
    margin: 0;
    opacity: 0.9;
}


.admin-grid {
    display: grid;

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

    gap: 22px;

    margin-bottom: 24px;
}


.admin-card {
    background: white;

    border: 1px solid #d9e1e3;

    border-radius: 18px;

    padding: 26px;

    min-height: 235px;

    display: flex;

    flex-direction: column;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.06);
}


.admin-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(0,0,0,0.10);
}


.admin-card-icon {
    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e7f0ed;

    border-radius: 15px;

    font-size: 26px;

    margin-bottom: 16px;
}


.admin-card h3 {
    margin: 0 0 12px;

    color: #183e35;

    font-size: 19px;
}


.admin-card p {
    color: #64707b;

    line-height: 1.5;

    margin: 0 0 22px;

    flex-grow: 1;
}


.admin-action-btn {
    width: 100%;

    background: #155d48;

    color: white;

    border: none;

    border-radius: 9px;

    padding: 14px 18px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.admin-action-btn:hover {
    background: #0f4938;
}


.admin-tools-card {
    background: white;

    border: 1px solid #d9e1e3;

    border-radius: 18px;

    padding: 24px 28px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 25px;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.06);
}


.admin-tools-info {
    display: flex;

    align-items: center;

    gap: 20px;
}


.admin-tools-info h3 {
    margin: 0 0 8px;

    color: #183e35;
}


.admin-tools-info p {
    margin: 0;

    color: #64707b;

    line-height: 1.5;
}


.admin-tools-card .admin-action-btn {
    width: auto;

    min-width: 180px;
}


/* ============================================================
   ADMIN TOOLS
   ============================================================ */

.admin-tools-container {
    max-width: 1200px;

    padding-top: 30px;

    padding-bottom: 60px;
}


.admin-tools-welcome {
    background: linear-gradient(
        135deg,
        #124f3c,
        #17644c
    );

    color: white;

    padding: 26px 30px;

    border-radius: 18px;

    margin-bottom: 22px;
}


.admin-tools-welcome h2 {
    margin: 0 0 8px;
}


.admin-tools-welcome p {
    margin: 0;

    opacity: 0.9;
}


.admin-tools-tabs {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    background: white;

    padding: 12px;

    border-radius: 16px;

    border: 1px solid #d9e1e3;

    margin-bottom: 26px;
}


.admin-tools-tabs button {
    border: none;

    background: #eef2f3;

    color: #40515a;

    padding: 13px 18px;

    border-radius: 10px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.admin-tools-tabs button:hover,
.admin-tools-tabs button.active-tab {
    background: #155d48;

    color: white;
}


.tool-module {
    background: white;

    border: 1px solid #d9e1e3;

    border-radius: 18px;

    padding: 28px;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.06);
}


.module-heading {
    margin-bottom: 24px;
}


.module-heading h2 {
    margin: 0 0 8px;

    color: #183e35;
}


.module-heading p {
    margin: 0;

    color: #64707b;
}


.admin-tools-page .search-box {
    margin-bottom: 20px;
}


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

@media (max-width: 768px) {

    .admin-container {
        padding: 22px 15px 45px;
    }


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


    .admin-tools-card {
        flex-direction: column;

        align-items: stretch;
    }


    .admin-tools-info {
        align-items: flex-start;
    }


    .admin-tools-card .admin-action-btn {
        width: 100%;
    }


    .admin-tools-tabs {
        flex-direction: column;
    }


    .admin-tools-tabs button {
        width: 100%;
    }


    .admin-header-actions {
        gap: 8px;
    }

}


/* ============================================================
   PENDING REGISTRATIONS - ADMIN DESIGN
============================================================ */

.admin-hero {
    background: linear-gradient(
        135deg,
        #114d3d,
        #1d6652
    );

    color: white;

    padding: 32px;

    border-radius: 18px;

    margin: 30px 0;
}


.admin-hero h2 {
    margin: 0 0 8px;
}


.admin-hero p {
    margin: 0;

    opacity: 0.9;
}


.status-message {

    padding: 18px;

    background: white;

    border-radius: 12px;

    margin-bottom: 20px;

    text-align: center;

}


.registration-grid {

    display: grid;

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

    gap: 22px;

}


.registration-card {

    background: white;

    border: 1px solid #dce6e2;

    border-radius: 16px;

    padding: 22px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.08);

}


.registration-card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 16px;

    border-bottom:
        1px solid #e5ece9;

}


.registration-card-header h3 {

    margin: 0;

    color: #174a3c;

    font-size: 20px;

}


.pending-badge {

    display: inline-block;

    margin-top: 8px;

    background: #fff3cd;

    color: #8a6200;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;

}


.registration-details {

    padding: 16px 0;

}


.detail-row {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 10px 0;

    border-bottom:
        1px solid #edf1ef;

}


.detail-row span {

    color: #64748b;

}


.detail-row strong {

    color: #243b35;

    text-align: right;

}


.registration-actions {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

}


.approve-btn,
.merge-btn,
.reject-btn {

    border: none;

    border-radius: 8px;

    padding: 11px 15px;

    cursor: pointer;

    font-weight: 600;

}


.approve-btn {

    background: #176447;

    color: white;

}


.merge-btn {

    background: #1f5f7a;

    color: white;

}


.reject-btn {

    background: #a63d3d;

    color: white;

}


.merge-box {

    margin-top: 20px;

    padding: 18px;

    background: #f5f8f7;

    border-left:
        4px solid #176447;

    border-radius: 10px;

}


.merge-box input {

    width: 100%;

    box-sizing: border-box;

    margin: 8px 0;

    padding: 12px;

    border: 1px solid #ccd8d3;

    border-radius: 8px;

}


.identified-employee {

    margin-top: 15px;

    padding: 16px;

    background: white;

    border-radius: 10px;

    border:
        1px solid #d9e6e0;

}


.empty-state {

    background: white;

    padding: 50px;

    text-align: center;

    border-radius: 16px;

}


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

@media (max-width: 600px) {

    .registration-grid {

        grid-template-columns: 1fr;

    }


    .detail-row {

        flex-direction: column;

        gap: 5px;

    }


    .detail-row strong {

        text-align: left;

    }


    .registration-actions {

        flex-direction: column;

    }

}


/* ============================================================
   GVMCH_ADVANCED_ADMIN_TOOLS_STYLE
   ============================================================ */

.admin-tools-card {

    margin: 20px 0 30px;

    padding: 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    background: #ffffff;

    border: 1px solid #d7e0e4;

    border-radius: 18px;

    box-shadow:
        0 8px 24px rgba(0,0,0,0.08);

}


.admin-tools-info {

    display: flex;

    align-items: center;

    gap: 20px;

}


.admin-tools-info h3 {

    margin: 0 0 8px;

    font-size: 20px;

}


.admin-tools-info p {

    margin: 0;

    color: #64748b;

    line-height: 1.6;

}


.admin-tools-card .admin-action-btn {

    min-width: 180px;

    white-space: nowrap;

}


@media (max-width: 700px) {

    .admin-tools-card {

        flex-direction: column;

        align-items: stretch;

    }


    .admin-tools-info {

        align-items: flex-start;

    }


    .admin-tools-card .admin-action-btn {

        width: 100%;

    }

}

/* ============================================================
   MAIN PAGE HEADER ACTIONS - KEEP HORIZONTAL
============================================================ */

#headerActions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

#headerActions .login-btn {
    width: auto !important;
    flex: 1;
    margin: 0 !important;
    white-space: nowrap;
}

/* ============================================================
   ADD CONTACT MODAL - FIX FORM LAYOUT
============================================================ */

#addContactModal .profile-modal-content,
.add-contact-modal-content {
    width: 90%;
    max-width: 500px;
}

#addContactModal form,
.add-contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#addContactModal label,
.add-contact-form label {
    display: block;
    width: 100%;
    margin-top: 8px;
    font-weight: 500;
}

#addContactModal input,
#addContactModal select,
.add-contact-form input,
.add-contact-form select {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    margin: 0;
}

#addContactModal button[type="submit"],
.add-contact-form button[type="submit"] {
    width: 100%;
    margin-top: 16px;
}


/* ============================================================
   MODERN EMPLOYEE PHONEBOOK CARD UPGRADE
============================================================ */

.employee-card {
    position: relative;

    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f8fbfa 100%
    );

    border: 1px solid #e1e9e5;

    border-radius: 18px;

    padding: 22px;

    overflow: hidden;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* Top accent */

.employee-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        #1b5e4b,
        #2e8b70
    );
}


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

    box-shadow:
        0 14px 35px rgba(27, 94, 75, 0.15);
}


/* Employee Name */

.employee-card h3 {
    margin: 5px 0 18px;

    padding-bottom: 14px;

    border-bottom: 1px solid #e7eeea;

    color: #163d32;

    font-size: 21px;

    font-weight: 700;

    line-height: 1.3;
}


/* Information rows */

.employee-card p {
    display: flex;

    flex-direction: column;

    gap: 4px;

    margin: 13px 0;

    padding: 10px 12px;

    background: rgba(245, 249, 247, 0.8);

    border-radius: 10px;

    color: #47534e;

    font-size: 14px;

    line-height: 1.45;
}


/* Field labels */

.employee-card strong {
    color: #1b5e4b;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* Highlight Duty Pay */

.employee-card p:has(strong:first-child) {
    border-left: 3px solid transparent;
}


/* Action area */

.phone-actions {
    margin-top: 20px;

    padding-top: 16px;

    border-top: 1px solid #e7eeea;

    gap: 10px;
}


.call-btn,
.whatsapp-btn {
    min-height: 46px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.call-btn:hover,
.whatsapp-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.14);
}


/* Mobile optimization */

@media (max-width: 600px) {

    .employee-list {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .employee-card {
        padding: 18px;

        border-radius: 16px;
    }

    .employee-card h3 {
        font-size: 19px;
    }

    .employee-card p {
        margin: 9px 0;

        padding: 9px 10px;
    }

    .phone-actions {
        gap: 8px;
    }

    .call-btn,
    .whatsapp-btn {
        padding: 11px 10px;

        font-size: 13px;
    }
}



/* ============================================================
   MODERN PUBLIC PHONEBOOK EMPLOYEE CARD
============================================================ */

.modern-employee-card {
    padding: 28px;

    border-radius: 20px;

    border: 1px solid #dce7e2;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7faf9 100%
        );

    box-shadow:
        0 8px 30px rgba(20, 70, 55, 0.10);
}


.employee-card-top {
    display: flex;

    align-items: center;

    gap: 22px;

    padding-bottom: 24px;

    border-bottom:
        1px solid #e2ebe7;
}


.employee-avatar {
    width: 110px;
    height: 110px;

    min-width: 110px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #dcebe6,
            #c6ddd5
        );

    color: #14513f;

    font-size: 38px;

    font-weight: 800;

    letter-spacing: 1px;
}


.employee-identity {
    flex: 1;
}


.modern-employee-card h3 {
    margin: 0 0 10px;

    padding: 0;

    border: none;

    color: #17253a;

    font-size: 32px;

    font-weight: 750;
}


.designation-badge {
    display: inline-block;

    padding: 8px 18px;

    border-radius: 999px;

    background: #dcece6;

    color: #245d4c;

    font-size: 16px;

    font-weight: 700;
}


.ward-badge {
    padding: 13px 20px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #e4f0eb,
            #d8e9e2
        );

    color: #245d4c;

    font-size: 16px;

    font-weight: 700;

    white-space: nowrap;
}


/* ============================================================
   INFORMATION GRID
============================================================ */

.employee-info-grid {
    display: grid;

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

    gap: 24px;

    margin-top: 24px;
}


.employee-info-column {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.info-box {
    display: flex;

    align-items: center;

    gap: 16px;

    min-height: 70px;

    padding: 14px 18px;

    border-radius: 14px;

    background:
        linear-gradient(
            90deg,
            #f7f9f9,
            #eef2f1
        );

    border:
        1px solid rgba(220, 230, 226, 0.7);
}


.info-icon {
    width: 34px;

    min-width: 34px;

    text-align: center;

    font-size: 24px;

    color: #14513f;
}


.info-box > div {
    display: flex;

    flex: 1;

    justify-content: space-between;

    align-items: center;

    gap: 15px;
}


.info-label {
    color: #5d6b7b;

    font-size: 15px;
}


.info-value {
    color: #263247;

    font-size: 17px;

    font-weight: 700;

    text-align: right;

    word-break: break-word;
}


.duty-pay-box {
    border-left:
        4px solid #1b7b5e;
}


.duty-pay-value {
    color: #14513f;

    font-size: 20px;
}


/* ============================================================
   ACTION BUTTONS
============================================================ */

.modern-phone-actions {
    margin-top: 24px;

    padding-top: 22px;

    border-top:
        1px solid #dfe9e5;
}


.modern-phone-actions .call-btn,
.modern-phone-actions .whatsapp-btn {
    min-height: 58px;

    border-radius: 10px;

    font-size: 17px;

    font-weight: 750;
}


.modern-phone-actions .call-btn {
    background:
        linear-gradient(
            135deg,
            #14513f,
            #0d4434
        );
}


.modern-phone-actions .whatsapp-btn {
    background:
        linear-gradient(
            135deg,
            #25c46a,
            #18ad59
        );

    color: white;
}


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

@media (max-width: 800px) {

    .modern-employee-card {
        padding: 18px;
    }


    .employee-card-top {
        flex-wrap: wrap;

        gap: 16px;

        padding-bottom: 18px;
    }


    .employee-avatar {
        width: 72px;
        height: 72px;

        min-width: 72px;

        font-size: 26px;
    }


    .modern-employee-card h3 {
        font-size: 23px;
    }


    .designation-badge {
        font-size: 14px;

        padding: 7px 14px;
    }


    .ward-badge {
        width: 100%;

        text-align: center;

        white-space: normal;
    }


    .employee-info-grid {
        grid-template-columns: 1fr;

        gap: 12px;

        margin-top: 18px;
    }


    .info-box {
        min-height: 64px;

        padding: 12px;
    }


    .info-box > div {
        flex-direction: column;

        align-items: flex-start;

        gap: 3px;
    }


    .info-value {
        text-align: left;

        font-size: 16px;
    }


    .modern-phone-actions {
        flex-direction: column;
    }

}

/* ============================================================
   USER MANAGEMENT
   ============================================================ */

.user-management-card {
    background: #ffffff;
    border: 1px solid #d9e1e5;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


.user-management-info {
    flex: 1;
}


.user-management-info h3 {
    margin: 0 0 12px 0;
    color: #1f3b3d;
}


.user-management-info p {
    margin: 7px 0;
    color: #5f6f73;
}


.user-management-actions {
    display: flex;
    align-items: center;
}


.user-role-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}


.role-admin {
    background: #d1fae5;
    color: #065f46;
}


.role-user {
    background: #e5e7eb;
    color: #374151;
}


.make-admin-btn,
.remove-admin-btn {
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: bold;
    cursor: pointer;
}


.make-admin-btn {
    background: #2563eb;
    color: white;
}


.remove-admin-btn {
    background: #dc2626;
    color: white;
}


.make-admin-btn:hover,
.remove-admin-btn:hover {
    opacity: 0.85;
}


/* Mobile layout */

@media (max-width: 600px) {

    .user-management-card {
        flex-direction: column;
        align-items: stretch;
    }


    .user-management-actions {
        width: 100%;
    }


    .make-admin-btn,
    .remove-admin-btn {
        width: 100%;
    }

}


/* Compact contact search results — regular users only */
.compact-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}

.compact-contact-details {
    flex: 1;
    min-width: 0;
}

.compact-contact-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #172b4d;
    overflow-wrap: anywhere;
}

.compact-contact-subtitle {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
    color: #667085;
    overflow-wrap: anywhere;
}

.compact-contact-mobile {
    margin-top: 3px;
    font-size: 12px;
    color: #475467;
}

.compact-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.compact-contact-actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 76px;
    min-height: 32px;
    padding: 5px 9px;
    box-sizing: border-box;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.compact-call {
    background: #e8f5ec;
    color: #176b37;
}

.compact-whatsapp {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 480px) {
    .compact-contact-row {
        padding: 10px;
        gap: 8px;
    }

    .compact-contact-name {
        font-size: 14px;
    }

    .compact-contact-actions a {
        min-width: 68px;
        min-height: 30px;
        padding: 4px 6px;
        font-size: 11px;
    }
}

/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {
    --primary: #3ba982;
    --primary-dark: #247858;
    --primary-light: #263d35;
    --background: #121a22;
    --card: #1e2935;
    --text: #e6edf3;
    --muted: #a7b4c2;
    --border: #3a4856;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #18222d;
    color: var(--text);
    border-color: var(--border);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #9aa8b6;
}

body.dark-mode .card,
body.dark-mode .form-container,
body.dark-mode .login-container,
body.dark-mode .contact-card,
body.dark-mode .modal-content {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
}

body.dark-mode a {
    color: #7fc9ff;
}

body.dark-mode button {
    transition: background-color 0.2s ease;
}

/* Results-only phonebook search view */
body.search-results-mode > header,
body.search-results-mode > .header {
    display: none !important;
}

body.search-results-mode main.container > .hero {
    display: none !important;
}

body.search-results-mode main.container {
    padding-top: 12px;
}

body.search-results-mode #directorySection {
    display: block !important;
}

#backToSearchButton {
    margin-left: auto;
    white-space: nowrap;
}

body.dark-mode #backToSearchButton {
    background: var(--primary-dark);
    color: #ffffff;
}


/* Search results-only mobile view */
body.search-results-mode .header {
    display: none !important;
}

body.search-results-mode .hero {
    display: none !important;
}

body.search-results-mode .directory-section {
    display: block;
    padding-top: 20px;
}

body.search-results-mode #backToSearchButton {
    display: inline-block;
    margin: 12px 0;
}

body.search-results-mode .container {
    padding-top: 12px;
}
