/* UPSI HEALTH PORTAL - MASTER STYLESHEET 
   Primary Colors: Maroon (#800000), Gold (#D4AF37)
   Updated: 2026 
*/

/* 1. Global Variables & Reset */
:root {
    --upsi-maroon: #800000;
    --upsi-maroon-dark: #4a0000;
    --upsi-gold: #d4af37;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #777777;
    --sidebar-bg: #1a1a1a;
    --border-color: #eeeeee;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --success: #059669;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* 2. Authentication Layout (Index, Register, Forgot Password) */
/* Apply 'auth-page' class to the <body> tag of login/register/forgot pass pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--upsi-maroon) 0%, var(--upsi-maroon-dark) 100%);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    padding: 45px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 480px; /* Prevents the 'tiny' column look */
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card img {
    max-width: 120px;
    margin-bottom: 15px;
}

.auth-form-group {
    text-align: left;
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.auth-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s;
}

.auth-form-group input:focus {
    outline: none;
    border-color: var(--upsi-maroon);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

/* 3. Dashboard Layout Architecture */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: white;
    padding: 20px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 30px 40px;
    background-color: var(--bg-light);
    min-height: 100vh;
    overflow-y: auto;
}

/* 4. Navigation & Sidebar Items */
.sidebar-brand {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    flex: 1;
}

.nav-menu li a {
    color: #bbb;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    transition: 0.3s;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.nav-menu li a:hover, .nav-menu li a.active {
    background: var(--upsi-maroon);
    color: white;
}

.nav-menu i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* 5. Header & Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

/* 6. Professional Stat Cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-pro {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 6px solid var(--upsi-maroon);
    transition: 0.3s ease;
}

.stat-card-pro:hover { transform: translateY(-5px); }

/* 7. Content Cards & Tables */
.status-table-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    width: 100%; /* Ensures full width within content area */
}

.patient-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.patient-table th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    color: #666;
    border-bottom: 2px solid #eee;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.patient-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* 8. Buttons */
.btn-primary {
    background: var(--upsi-maroon);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--upsi-maroon-dark);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.2);
}

/* 9. Status Pills */
.status-pill {
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    display: inline-block;
}

.Confirmed, .Approved { background: #e6fffa; color: #234e52; }
.Pending { background: #fffaf0; color: #7b341e; }
.Cancelled { background: #fff5f5; color: #c53030; }

/* 10. Responsive */
@media (max-width: 992px) {
    .sidebar { width: 80px; padding: 15px 10px; }
    .sidebar-brand h4, .nav-menu span { display: none; }
    .main-content { padding: 20px; }
}