/* Modern Design System & Performance-Optimized Styles for MM_NameDB2 */
:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
    --accent-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --surface-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-sm: 0 2px 8px rgba(99, 102, 241, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(99, 102, 241, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(79, 70, 229, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    background-color: var(--surface-bg);
    color: var(--text-main);
    font-family: 'pyidaungsu', system-ui, -apple-system, sans-serif;
    line-height: 1.8;
    min-height: 100vh;
}

/* Navbar Enhancements */
.navbar-custom {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
}

.brand-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 30px;
}

/* Performance Optimized Cards (Replaced heavy backdrop-filter to prevent scroll GPU repainting flashes) */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform: translateZ(0); /* Hardware acceleration */
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Custom Nav Pills / Tabs */
.nav-pills-custom {
    background: #e2e8f0;
    padding: 4px;
    border-radius: 14px;
    display: flex;
    gap: 4px;
}

.nav-pills-custom .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 10px;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.nav-pills-custom .nav-link.active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* Input Fields & Form Control */
.form-control-custom, .form-select-custom {
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-custom:focus, .form-select-custom:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    outline: none;
}

.input-group-text-custom {
    background: rgba(99, 102, 241, 0.08);
    border: 1.5px solid #cbd5e1;
    border-right: none;
    color: #4f46e5;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* Buttons */
.btn-primary-gradient {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 10px 24px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary-gradient:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.btn-accent-gold {
    background: var(--accent-gold-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

/* Smooth Fade In (Removed initial opacity 0 flash to prevent blank scroll rendering) */
.animate-fade-in {
    animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0.85;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Justified Text Utility */
.justified-text {
    text-align: justify;
}
