:root {
    --primary-color: #0f3b5e;
    --primary-light: #165282;
    --secondary-color: #20c997;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --white: #ffffff;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

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

h1 {
    color: var(--primary-color);
    margin: 0;
}

nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.auth-container {
    max-width: 500px;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.dashboard-container {
    display: flex;
    margin-top: 2rem;
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sidebar {
    width: 250px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 1rem;
}

.sidebar ul li a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
}

.sidebar ul li a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.main-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1;
    text-align: center;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

footer {
    margin-top: 3rem;
    padding: 1rem 0;
    text-align: center;
    color: #666;
}

/* ==================================================
   RESPONSIVE DESIGN (TABLET & MOBILE VIEWS)
   ================================================== */

/* TABLET VIEW */
@media (max-width: 992px) {
    .dashboard-container {
        gap: 1rem;
    }
    
    .sidebar {
        width: 200px; /* slightly smaller sidebar */
        padding: 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .stats {
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

/* MOBILE VIEW */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .dashboard-container {
        flex-direction: column;
        margin-top: 1rem;
    }
    
    .sidebar {
        width: 100%;
        box-sizing: border-box;
    }
    
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .sidebar ul li {
        margin-bottom: 0;
    }
    
    .stats {
        flex-direction: column;
    }
    
    /* Responsive Tables */
    .table-container {
        width: 100%;
        overflow-x: auto;
    }
    
    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .auth-container {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 1.5rem;
        box-sizing: border-box;
    }
}

/* ==================================================
   PREMIUM AUTHENTICATION UI
   ================================================== */
.auth-page-body {
    background-color: #f0f4f8; /* Soft light neutral background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.auth-page-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: transparent;
}

.premium-auth-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 650px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

/* Left Panel - Dark Medical Tech */
.premium-left {
    flex: 1;
    background: linear-gradient(145deg, #0d1b2a 0%, #1b263b 100%);
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Subtle glowing tech elements */
.premium-left::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(32, 201, 151, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.premium-left::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(15, 59, 94, 0.4) 0%, transparent 70%);
    z-index: 0;
}

.premium-left-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-brand {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.premium-brand-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

.premium-brand-icon svg {
    color: var(--secondary-color);
}

.premium-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--white);
    text-decoration: none;
}

.premium-headline {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.premium-headline span {
    color: #4cc9f0; /* Accent color */
}

.premium-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 90%;
}

.premium-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto; /* Push to bottom */
}

.premium-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.premium-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.premium-feature-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.premium-feature-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.premium-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Right Panel - Login */
.premium-right {
    flex: 1;
    padding: 3rem 4rem;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.premium-auth-header {
    margin-bottom: 2rem;
}

.premium-auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.premium-auth-header p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Segmented Control */
.premium-segment-control {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.segment-btn {
    flex: 1;
    padding: 0.875rem;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.segment-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Inputs */
.premium-form .form-group {
    margin-bottom: 1.5rem;
}

.premium-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.premium-form .form-control {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-color);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.premium-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 59, 94, 0.1);
}

.premium-phone-group {
    display: flex;
    align-items: center;
}

.premium-phone-prefix {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-weight: 500;
    color: #475569;
    box-sizing: border-box;
}

.premium-phone-group .form-control {
    border-radius: 0 8px 8px 0;
}

.premium-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.premium-btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 59, 94, 0.2);
}

.premium-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.premium-info-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.premium-auth-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.premium-auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.premium-auth-links a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.forgot-pwd {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .premium-auth-card {
        flex-direction: column;
    }
    
    .premium-left {
        padding: 2.5rem;
        min-height: auto;
    }
    
    .premium-features, .premium-footer {
        display: none; /* Hide complex elements on mobile to save space */
    }
    
    .premium-headline {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .premium-desc {
        margin-bottom: 0;
    }
    
    .premium-right {
        padding: 2.5rem;
    }
}

@media (max-width: 480px) {
    .premium-right {
        padding: 1.5rem;
    }
    
    .premium-auth-header h2 {
        font-size: 1.5rem;
    }
}
