/* =========================================================
   VACCINATIONPRO - MAIN STYLE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #222222;
}

.app-wrapper {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   TOP NAVIGATION
========================================================= */

.top-navigation {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);

    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav-container {
    width: 100%;
    min-height: 70px;

    display: flex;
    align-items: center;

    padding: 8px 18px;
    gap: 15px;
}


/* =========================================================
   BRAND
========================================================= */

.nav-brand {
    display: flex;
    align-items: center;

    text-decoration: none !important;
    color: #111827 !important;

    min-width: 175px;
    flex-shrink: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    background: #0d6efd;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
    margin-right: 10px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.brand-text span {
    color: #0d6efd;
}


/* =========================================================
   MENU
========================================================= */

.nav-menu {
    flex: 1;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 3px;
}


/* =========================================================
   NAV LINK
========================================================= */

.top-navigation .nav-link {

    display: flex !important;

    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 7px 8px;

    border-radius: 8px;

    color: #374151 !important;

    text-decoration: none !important;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;

    transition: all 0.2s ease;
}

.top-navigation .nav-link i {
    font-size: 15px;
}

.top-navigation .nav-link:hover {
    background: #eff6ff;
    color: #0d6efd !important;
}


/* =========================================================
   ACTIVE MENU
========================================================= */

.top-navigation .nav-link.active {
    background: #0d6efd;
    color: #ffffff !important;
}


/* =========================================================
   LOGOUT
========================================================= */

.top-navigation .nav-logout {
    color: #dc3545 !important;
}

.top-navigation .nav-logout:hover {
    background: #fff1f2;
    color: #dc3545 !important;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    width: 100% !important;
    margin-left: 0 !important;

    padding: 25px;
    min-height: calc(100vh - 70px);
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    background: #ffffff;

    padding: 18px 20px;

    border-radius: 12px;

    border: 1px solid #e5e7eb;

    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}


/* =========================================================
   STAT CARD
========================================================= */

.stat-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 18px;

    display: flex;
    align-items: center;

    gap: 15px;

    height: 100%;

    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-icon {
    width: 50px;
    height: 50px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 22px;

    flex-shrink: 0;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 3px;
}

.stat-number {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}


/* =========================================================
   TABLE CARD
========================================================= */

.table-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 20px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}


/* =========================================================
   TABLE
========================================================= */

.table {
    margin-bottom: 0;
}

.table thead th {

    background: #f8fafc;

    color: #374151;

    font-size: 13px;

    font-weight: 700;

    border-bottom: 2px solid #e5e7eb;

    padding: 14px 12px;

    white-space: nowrap;
}

.table tbody td {

    padding: 13px 12px;

    vertical-align: middle;

    font-size: 13px;

    color: #374151;
}

.table-hover tbody tr:hover {
    background: #f8fbff;
}


/* =========================================================
   BADGES
========================================================= */

.badge {
    padding: 7px 9px;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}

.btn-success {
    background: #198754;
    border-color: #198754;
}


/* =========================================================
   ALERT
========================================================= */

.alert {
    border-radius: 10px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer,
footer {
    background: #ffffff;

    border-top: 1px solid #e5e7eb;

    padding: 18px;

    text-align: center;

    color: #6b7280;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1201px) {

    .nav-menu {
        flex-wrap: nowrap;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) and (min-width: 769px) {

    .nav-container {
        padding: 8px 12px;
        gap: 10px;
    }

    .nav-brand {
        min-width: 155px;
    }

    .brand-text {
        font-size: 18px;
    }

    .top-navigation .nav-link {
        padding: 6px 6px;
        font-size: 10px;
    }

    .top-navigation .nav-link i {
        font-size: 13px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .top-navigation {
        position: relative;
    }

    .nav-container {

        flex-direction: column;

        align-items: stretch;

        padding: 12px 15px;

        gap: 12px;
    }

    .nav-brand {

        min-width: auto;

        justify-content: center;
    }

    .nav-menu {

        width: 100%;

        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 5px;
    }

    .top-navigation .nav-link {

        flex-direction: column;

        gap: 3px;

        padding: 8px 4px;

        font-size: 10px;

        white-space: normal;

        text-align: center;
    }

    .top-navigation .nav-link i {
        font-size: 17px;
    }

    .main-content {
        padding: 15px;
    }

    .topbar {

        flex-direction: column !important;

        align-items: flex-start !important;

        gap: 15px;
    }

    .topbar > div:last-child {

        width: 100%;

        display: flex;
    }

    .topbar .btn {
        flex: 1;
    }

    .table-card {
        padding: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 576px) {

    .nav-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-text {
        font-size: 18px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .main-content {
        padding: 10px;
    }

}