/* ============================================
   MASTER STYLESHEET - FULLY RESPONSIVE
   ============================================ */

/* --------------------------------------------
   GLOBAL RESET & BASE
--------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #eef4ea;
    color: #1a2e1a;
    line-height: 1.6;
    min-height: 100vh;
}

/* --------------------------------------------
   CSS VARIABLES
--------------------------------------------- */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4d3e;
    --primary-light: #e9f5e9;
    --primary-soft: #d0e8ca;
    --secondary: #52796f;
    --secondary-dark: #3d5a4d;
    --secondary-light: #eef4ea;
    --success: #2d6a4f;
    --success-light: #e9f5e9;
    --warning: #d4a373;
    --warning-light: #fef3e7;
    --error: #bc4742;
    --error-light: #fee2e2;
    --info: #4a7c59;
    --info-light: #e2f0df;
    --white: #ffffff;
    --offwhite: #f6faf4;
    --gray-50: #f5f7f2;
    --gray-100: #e9ece5;
    --gray-200: #d6ddd3;
    --gray-300: #b2c0af;
    --gray-400: #8fa18c;
    --gray-500: #5e6e5a;
    --gray-600: #3e4c3a;
    --gray-700: #2d3a2a;
    --gray-800: #1e2a1c;
    --gray-900: #121a10;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 40px rgba(45,106,79,0.12);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    --header-height: 70px;
    --sidebar-width: 280px;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Jost', sans-serif;
}

/* --------------------------------------------
   MOBILE MENU BUTTON
--------------------------------------------- */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98;
    backdrop-filter: blur(4px);
}

/* --------------------------------------------
   ADMIN DASHBOARD LAYOUT
--------------------------------------------- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 99;
    transition: transform 0.3s ease-in-out;
    box-shadow: var(--shadow-md);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    transition: margin-left 0.3s;
    width: 100%;
    overflow-x: hidden;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet & Mobile */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 5rem;
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .main-content {
        padding: 0.75rem;
        padding-top: 4.5rem;
    }
    
    .mobile-menu-btn {
        width: 42px;
        height: 42px;
        top: 0.75rem;
        left: 0.75rem;
        font-size: 1.1rem;
    }
}

.sidebar-header {
    height: auto;
    min-height: var(--header-height);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray-900);
    text-decoration: none;
    font-family: var(--font-serif);
}

.sidebar-header .logo img {
    max-width: 160px;
    height: auto;
}

@media (max-width: 576px) {
    .sidebar-header .logo img {
        max-width: 140px;
    }
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0.5rem;
}

@media (max-width: 992px) {
    .close-sidebar {
        display: block;
    }
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1rem;
}

.nav-section-title {
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-item i {
    width: 20px;
    font-size: 1rem;
    color: var(--gray-400);
    transition: all 0.2s;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item:hover i {
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--primary);
}

/* Top Bar */
.top-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .page-title h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .top-bar {
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
    }
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    font-family: var(--font-serif);
}

.page-title p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
}

@media (max-width: 576px) {
    .stat-card {
        padding: 1rem;
        border-radius: var(--radius-md);
    }
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-info h3 {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.2;
    font-family: var(--font-serif);
}

.stat-trend {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.25rem;
    overflow-x: auto;
}

@media (max-width: 576px) {
    .card {
        padding: 0.75rem;
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 576px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    font-family: var(--font-serif);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
}

.view-all {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* Two Columns Layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Table Wrapper */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========== TABLE - FULLY RESPONSIVE ========== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 650px;
}

@media (max-width: 768px) {
    table {
        min-width: 550px;
    }
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    background: var(--gray-50);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
}

th {
    text-align: left;
    padding: 0.875rem 0.875rem;
    background: var(--gray-50);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 0.875rem 0.875rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.85rem;
    word-break: break-word;
}

@media (max-width: 576px) {
    th, td {
        padding: 0.6rem 0.6rem;
    }
    td {
        font-size: 0.8rem;
    }
    .data-table th,
    .data-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    .data-table {
        min-width: 350px;
    }
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--gray-50);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
}

.badge-pending {
    background: var(--warning-light);
    color: #9b6a3c;
}

.badge-approved, .badge-active, .badge-confirmed {
    background: var(--success-light);
    color: var(--primary-dark);
}

.badge-rejected, .badge-blocked, .badge-cancelled {
    background: var(--error-light);
    color: #9b3a36;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed, .status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-cancelled, .status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-unread {
    background: #fef3c7;
    color: #92400e;
}

.status-read {
    background: #d1fae5;
    color: #065f46;
}

/* ========== FILTER BAR - FULLY RESPONSIVE ========== */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.2rem 0.2rem 1rem;
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .search-box {
        width: 100%;
        min-width: auto;
    }
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    background: transparent;
    font-family: var(--font-sans);
    min-width: 0;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.filter-select {
    padding: 0.6rem 2rem 0.6rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    background: var(--white);
    cursor: pointer;
    font-family: var(--font-sans);
}

@media (max-width: 768px) {
    .filter-select {
        width: 100%;
    }
}

.filter-bar .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .filter-bar .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Status Select */
.status-select {
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: 500;
    font-family: var(--font-sans);
    background-color: var(--white);
    max-width: 110px;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

@media (max-width: 576px) {
    .pagination {
        gap: 0.3rem;
        margin-top: 1rem;
    }
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .pagination li a {
        min-width: 34px;
        height: 34px;
        font-size: 0.8rem;
        padding: 0 6px;
    }
}

.pagination li a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination li.active a {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 576px) {
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .toast {
        width: 100%;
        max-width: none;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

.toast {
    background: var(--white);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--gray-200);
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    font-family: var(--font-sans);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

@media (max-width: 576px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .quick-actions {
        gap: 0.75rem;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .quick-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .quick-action-btn {
        justify-content: center;
    }
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1.3rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.quick-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #e2f0df 0%, #d0e8ca 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid rgba(45,106,79,0.1);
}

@media (max-width: 768px) {
    .welcome-banner {
        padding: 1.2rem 1.2rem;
        text-align: center;
        justify-content: center;
    }
}

.date {
    font-size: 0.85rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Login Card */
.login-card {
    background: var(--white);
    border-radius: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    animation: slideUp 0.5s ease;
    margin: 2rem auto;
}

@media (max-width: 576px) {
    .login-card {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 1.5rem;
    }
}
/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

/* Login Card Container */
.login-card {
    max-width: 450px;
    width: 90%;
    margin: 5rem auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
    border: 1px solid var(--gray-200);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Area */
.login-card .logo-area {
    text-align: center;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--offwhite) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.login-card .logo-icon {
    margin-bottom: 1rem;
}

.login-card .logo-icon img {
    max-width: 120px;
    height: auto;
}

.login-card .logo-area h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    font-family: var(--font-serif);
}

.login-card .logo-area h2 span {
    color: var(--primary);
}

.login-card .logo-area p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    margin: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: var(--success-light);
    color: var(--primary-dark);
    border-left: 4px solid var(--success);
}

.alert-success i {
    color: var(--success);
    font-size: 1.1rem;
}

.alert-error {
    background: var(--error-light);
    color: #9b3a36;
    border-left: 4px solid var(--error);
}

.alert-error i {
    color: var(--error);
    font-size: 1.1rem;
}

.alert p {
    margin: 0;
    flex: 1;
}

/* Form Styles */
.login-card form {
    padding: 1.5rem 1.5rem 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-label i {
    margin-right: 0.5rem;
    color: var(--primary);
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* Login Button */
.login-card .btn {
    width: 100%;
    padding: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.login-card .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-card .btn:active {
    transform: translateY(0);
}

/* Back Link */
.back-link {
    text-align: center;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 0.5rem;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.back-link a:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

.back-link a i {
    font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE LOGIN PAGE
   ============================================ */

@media (max-width: 576px) {
    .login-card {
        width: 95%;
        margin: 2rem auto;
        border-radius: var(--radius-lg);
    }
    
    .login-card .logo-area {
        padding: 1.5rem 1rem 0.75rem;
    }
    
    .login-card .logo-icon img {
        max-width: 90px;
    }
    
    .login-card .logo-area h2 {
        font-size: 1.5rem;
    }
    
    .login-card .logo-area p {
        font-size: 0.75rem;
    }
    
    .login-card form {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .form-control {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .login-card .btn {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .alert {
        margin: 0.75rem 1rem;
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }
    
    .back-link {
        padding: 0.75rem 1.25rem 1.25rem;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .login-card {
        width: 98%;
        margin: 1rem auto;
    }
    
    .login-card .logo-area h2 {
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
    }
}

/* Center body for login page */
body:has(.login-card) {
    background: linear-gradient(135deg, #eef4ea 0%, #d4e4d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

/* Animation for form elements */
.form-group {
    animation: fadeInUp 0.4s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.login-card .btn { animation-delay: 0.3s; }
.back-link { animation-delay: 0.4s; }

/* Password visibility toggle (optional) */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 1rem;
}

.password-toggle:hover {
    color: var(--primary);
}
/* Appointment Slip */
.slip-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary);
}

@media (max-width: 576px) {
    .slip-container {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: var(--radius-md);
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Message Unread Row */
.message-unread {
    background: var(--primary-light);
    font-weight: 500;
}

.message-preview {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .message-preview {
        max-width: 180px;
    }
}

@media (max-width: 576px) {
    .message-preview {
        max-width: 120px;
    }
}

/* No Resume Text */
.no-resume {
    color: var(--gray-400);
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

/* Print */
@media print {
    .sidebar, .top-bar, .filter-bar, .btn, .toast-container, .print-btn-container, .mobile-menu-btn, .sidebar-overlay {
        display: none !important;
    }
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}