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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    color: #1e293b;
}


/* =========================
   APP
========================= */

.app {
    display: flex;
    min-height: 100vh;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 25px 15px;

    display: flex;
    flex-direction: column;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 30px;
}

.brand-icon {
    width: 45px;
    height: 45px;

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

    background-color: #e8f3ff;
    border-radius: 12px;

    font-size: 22px;
}

.brand h4 {
    margin: 0;
    font-size: 20px;
}

.brand span {
    font-size: 12px;
    color: #64748b;
}


/* Menu */

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    text-decoration: none;
    color: #64748b;

    padding: 12px 15px;

    border-radius: 10px;

    display: flex;
    align-items: center;

    gap: 12px;

    font-size: 14px;

    transition: 0.3s;
}

.menu-item span {
    font-size: 18px;
}

.menu-item:hover {
    background-color: #f1f7ff;
    color: #2563eb;
}

.menu-item.active {
    background-color: #2563eb;
    color: white;
}


/* Sidebar Bottom */

.sidebar-bottom {
    margin-top: auto;

    display: flex;
    flex-direction: column;
    gap: 8px;
}


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

.main-content {
    flex: 1;
}


/* =========================
   TOPBAR
========================= */

.topbar {
    height: 85px;

    background-color: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    padding: 0 35px;

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

.topbar h2 {
    font-size: 24px;
    margin-bottom: 3px;
}

.topbar p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}


/* Admin */

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification {
    width: 40px;
    height: 40px;

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

    background-color: #f1f5f9;

    border-radius: 10px;

    cursor: pointer;
}

.profile-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background-color: #2563eb;

    color: white;

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

    font-weight: bold;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

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

.profile-info small {
    color: #64748b;
    font-size: 11px;
}


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

.dashboard-content {
    padding: 35px;
}

.welcome-section h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.welcome-section p {
    color: #64748b;
}


/* =========================
   STATISTICS CARDS
========================= */

.stats-grid {
    display: grid;

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

    gap: 20px;

    margin-top: 30px;
}


.stat-card {
    background-color: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    padding: 22px;

    display: flex;
    align-items: center;

    gap: 18px;

    transition: 0.3s;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}


.stat-card:hover {
    transform: translateY(-4px);

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


/* Icons */

.stat-icon {
    width: 55px;
    height: 55px;

    min-width: 55px;

    border-radius: 14px;

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

    font-size: 25px;
}


.patients-icon {
    background-color: #e8f3ff;
}


.doctors-icon {
    background-color: #eafaf1;
}


.nurses-icon {
    background-color: #fff3e8;
}


.beds-icon {
    background-color: #f3eaff;
}


/* Card Text */

.stat-info p {
    margin: 0 0 5px;

    color: #64748b;

    font-size: 13px;
}


.stat-info h3 {
    margin: 0 0 5px;

    font-size: 25px;
}


.stat-info span {
    font-size: 11px;
}


.positive {
    color: #16a34a;
}


.neutral {
    color: #64748b;
}




/* =========================
   DASHBOARD LOWER SECTION
========================= */

.dashboard-grid {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 20px;

    margin-top: 25px;
}


.dashboard-card {
    background-color: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    padding: 22px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}


/* Card Header */

.card-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;
}


.card-header h3 {
    margin: 0 0 4px;

    font-size: 17px;
}


.card-header p {
    margin: 0;

    color: #64748b;

    font-size: 12px;
}


.view-all {
    text-decoration: none;

    color: #2563eb;

    font-size: 13px;

    font-weight: 600;
}


/* =========================
   PATIENT TABLE
========================= */

.patients-table {
    width: 100%;

    border-collapse: collapse;
}


.patients-table th {
    text-align: left;

    padding: 12px;

    font-size: 11px;

    color: #64748b;

    border-bottom: 1px solid #e5e7eb;
}


.patients-table td {
    padding: 14px 12px;

    font-size: 13px;

    border-bottom: 1px solid #f1f5f9;
}


.patients-table tr:last-child td {
    border-bottom: none;
}


/* Patient */

.patient-info {
    display: flex;

    align-items: center;

    gap: 10px;
}


.patient-avatar {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background-color: #e8f3ff;

    color: #2563eb;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: bold;
}


.patient-info div:last-child {
    display: flex;

    flex-direction: column;
}


.patient-info strong {
    font-size: 12px;
}


.patient-info small {
    color: #94a3b8;

    font-size: 10px;

    margin-top: 2px;
}


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

.status {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 600;
}


.active-status {
    background-color: #dcfce7;

    color: #15803d;
}


.pending-status {
    background-color: #fef3c7;

    color: #b45309;
}


.completed-status {
    background-color: #e0e7ff;

    color: #4338ca;
}


/* =========================
   QUICK ACTIONS
========================= */

.quick-actions {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.quick-action {
    text-decoration: none;

    color: #1e293b;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

    border-radius: 12px;

    transition: 0.3s;
}


.quick-action:hover {
    background-color: #f8fafc;
}


.quick-icon {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    background-color: #eff6ff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;
}


.quick-action div:last-child {
    display: flex;

    flex-direction: column;
}


.quick-action strong {
    font-size: 13px;
}


.quick-action small {
    color: #64748b;

    font-size: 10px;

    margin-top: 3px;
}





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

@media (max-width: 1100px) {

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

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

}


@media (max-width: 768px) {

    .sidebar {
        width: 75px;

        padding: 20px 10px;
    }

    .brand {
        justify-content: center;
    }

    .brand div:last-child,
    .menu-item {
        font-size: 0;
    }

    .menu-item {
        justify-content: center;
    }

    .menu-item span {
        font-size: 18px;
    }

    .topbar {
        padding: 0 20px;
    }

    .profile-info {
        display: none;
    }

    .dashboard-content {
        padding: 20px;
    }

}


@media (max-width: 576px) {

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

    .topbar h2 {
        font-size: 20px;
    }

    .welcome-section h1 {
        font-size: 23px;
    }

}



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

.page-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}


.page-header h1 {
    margin: 0 0 6px;

    font-size: 28px;
}


.page-header p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
}


.add-patient-btn {
    padding: 11px 18px;

    border-radius: 10px;

    font-size: 13px;
}


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

.search-section {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;
}


.search-box {
    flex: 1;

    height: 45px;

    background-color: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 15px;
}


.search-box span {
    font-size: 15px;
}


.search-box input {
    width: 100%;

    border: none;

    outline: none;

    font-size: 13px;
}


.patient-filter {
    width: 180px;

    height: 45px;

    border-radius: 10px;

    font-size: 13px;
}


/* =========================
   PATIENT PAGE TABLE
========================= */

.patients-page-card {
    padding: 0;

    overflow: hidden;
}


.patients-page-card .table-responsive {
    padding: 10px;
}


.patients-page-card .patients-table th {
    padding: 15px 12px;

    background-color: #f8fafc;
}


.patients-page-card .patients-table td {
    padding: 16px 12px;
}


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

.action-btn {
    border: none;

    background: transparent;

    width: 32px;

    height: 32px;

    border-radius: 8px;

    cursor: pointer;

    transition: 0.2s;

    margin-right: 3px;
}


.action-btn:hover {
    background-color: #f1f5f9;
}


.delete-btn:hover {
    background-color: #fee2e2;
}


/* =========================
   PATIENT PAGE RESPONSIVE
========================= */

@media (max-width: 768px) {

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

        gap: 15px;

        flex-direction: column;
    }

    .search-section {
        flex-direction: column;

        align-items: stretch;
    }

    .patient-filter {
        width: 100%;
    }

}


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

.patient-modal {
    border: none;

    border-radius: 16px;

    overflow: hidden;
}


.patient-modal .modal-header {
    padding: 22px 25px;

    border-bottom: 1px solid #e5e7eb;
}


.patient-modal .modal-title {
    font-size: 19px;

    font-weight: 600;

    margin: 0;
}


.modal-subtitle {
    margin: 4px 0 0;

    color: #64748b;

    font-size: 12px;
}


.patient-modal .modal-body {
    padding: 25px;
}


.patient-modal .modal-footer {
    padding: 15px 25px;

    border-top: 1px solid #e5e7eb;
}


.patient-modal .form-label {
    font-size: 13px;

    font-weight: 600;

    margin-bottom: 7px;
}


.patient-modal .form-control,
.patient-modal .form-select {
    height: 44px;

    border-radius: 9px;

    border-color: #e2e8f0;

    font-size: 13px;
}


.patient-modal .form-control:focus,
.patient-modal .form-select:focus {
    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* ==========================================
   SETTINGS PAGE
========================================== */

.settings-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.settings-card h3 {
    margin-bottom: 5px;
    font-weight: 600;
}

.settings-card p {
    color: #64748b;
    margin-bottom: 20px;
}


/* SETTINGS INPUTS */

.settings-card .form-control,
.settings-card .form-select {
    border-radius: 10px;
    padding: 11px 14px;
    border: 1px solid #dbe3ec;
}

.settings-card .form-control:focus,
.settings-card .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* SETTINGS BUTTON */

.settings-card .btn {
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 500;
}


/* NOTIFICATION OPTIONS */

.notification-option {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #f8fafc;
}

.notification-option:hover {
    background: #f1f5f9;
}


/* RESET BUTTON */

#resetSettingsBtn {
    border-radius: 10px;
    padding: 10px 20px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}

/* ==========================================
   LIGHT & DARK THEME
========================================== */

/* LIGHT THEME */

body.light-theme {
    background-color: #f5f7fa;
    color: #1e293b;
}

body.light-theme .sidebar,
body.light-theme .topbar,
body.light-theme .stat-card,
body.light-theme .dashboard-card,
body.light-theme .table-card,
body.light-theme .settings-card {
    background-color: #ffffff;
    color: #1e293b;
}

body.light-theme .menu-item {
    color: #64748b;
}

body.light-theme .menu-item:hover {
    background-color: #f1f7ff;
    color: #2563eb;
}

body.light-theme .page-header p,
body.light-theme .topbar p,
body.light-theme .welcome-section p {
    color: #64748b;
}

body.light-theme .form-control,
body.light-theme .form-select {
    background-color: #ffffff;
    color: #1e293b;
    border-color: #dbe3ec;
}

body.light-theme .notification-option {
    background-color: #f8fafc;
    color: #1e293b;
}


/* ==========================================
   DARK THEME
========================================== */

body.dark-theme {
    background-color: #0f172a;
    color: #e2e8f0;
}


/* SIDEBAR */

body.dark-theme .sidebar {
    background-color: #111827;
    border-color: #1f2937;
}


/* BRAND */

body.dark-theme .brand h4 {
    color: #f8fafc;
}

body.dark-theme .brand span {
    color: #94a3b8;
}


/* MENU */

body.dark-theme .menu-item {
    color: #94a3b8;
}

body.dark-theme .menu-item:hover {
    background-color: #1e293b;
    color: #60a5fa;
}

body.dark-theme .menu-item.active {
    background-color: #2563eb;
    color: white;
}


/* TOPBAR */

body.dark-theme .topbar {
    background-color: #111827;
    border-color: #1f2937;
}

body.dark-theme .topbar h2 {
    color: #f8fafc;
}

body.dark-theme .topbar p {
    color: #94a3b8;
}


/* MAIN HEADINGS */

body.dark-theme .page-header h1,
body.dark-theme .welcome-section h1 {
    color: #f8fafc;
}

body.dark-theme .page-header p,
body.dark-theme .welcome-section p {
    color: #94a3b8;
}


/* STAT CARDS */

body.dark-theme .stat-card {
    background-color: #111827;
    border-color: #1f2937;
}

body.dark-theme .stat-info p {
    color: #94a3b8;
}

body.dark-theme .stat-info h3 {
    color: #f8fafc;
}


/* DASHBOARD CARDS */

body.dark-theme .dashboard-card {
    background-color: #111827;
    border-color: #1f2937;
}

body.dark-theme .card-header h3 {
    color: #f8fafc;
}

body.dark-theme .card-header p {
    color: #94a3b8;
}


/* TABLES */

body.dark-theme table {
    color: #e2e8f0;
}

body.dark-theme .patients-table th {
    color: #94a3b8;
    border-color: #1f2937;
}

body.dark-theme .patients-table td {
    border-color: #1f2937;
}


/* TABLE CARD */

body.dark-theme .table-card {
    background-color: #111827;
    border-color: #1f2937;
}


/* SETTINGS */

body.dark-theme .settings-card {
    background-color: #111827;
    color: #e2e8f0;
}

body.dark-theme .settings-card h3 {
    color: #f8fafc;
}

body.dark-theme .settings-card p {
    color: #94a3b8;
}


/* INPUTS */

body.dark-theme .form-control,
body.dark-theme .form-select {
    background-color: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

body.dark-theme .form-control::placeholder {
    color: #64748b;
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
    background-color: #1e293b;
    color: #ffffff;
    border-color: #60a5fa;
}


/* NOTIFICATIONS */

body.dark-theme .notification-option {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-theme .notification-option strong {
    color: #f8fafc;
}

body.dark-theme .notification-option small {
    color: #94a3b8;
}

body.dark-theme .notification-option:hover {
    background-color: #273449;
}


/* QUICK ACTIONS */

body.dark-theme .quick-action {
    color: #e2e8f0;
}

body.dark-theme .quick-action:hover {
    background-color: #1e293b;
}


/* ACTION BUTTONS */

body.dark-theme .action-btn:hover {
    background-color: #1e293b;
}


/* SEARCH BOX */

body.dark-theme .search-box {
    background-color: #111827;
    border-color: #334155;
}

body.dark-theme .search-box input {
    background-color: transparent;
    color: #e2e8f0;
}

body.dark-theme .search-box input::placeholder {
    color: #64748b;
}