/* ============================================
   안양 법무사 - Main Stylesheet
   Mobile First, Premium Legal Design
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Deep Blue (신뢰, 전문성) */
    --primary: #1A237E;
    --primary-dark: #0D1659;
    --primary-light: #3949AB;

    /* Secondary Colors - Gold (고급스러움) */
    --secondary: #FFD600;
    --secondary-dark: #C7A500;
    --secondary-light: #FFEA00;

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #757575;
    --charcoal: #263238;
    --black: #1A1A1A;

    /* Accent Colors */
    --navy: #283593;
    --success: #4CAF50;
    --error: #F44336;
    --warning: #FF9800;

    /* Typography */
    --font-primary: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Pretendard', 'Noto Sans KR', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index Scale */
    --z-header: 1000;
    --z-dropdown: 1010;
    --z-modal: 1020;
    --z-fixed: 1030;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Font Import */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--charcoal);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* ============================================
   Layout & Container
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-3xl) 0;
    }
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: var(--z-dropdown);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    padding: 80px var(--space-lg) var(--space-lg);
    transition: right var(--transition-normal);
    overflow-y: auto;
}

.nav.active {
    right: 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    border-bottom: 1px solid var(--medium-gray);
}

.nav-link {
    display: block;
    padding: var(--space-md) 0;
    font-weight: 500;
    color: var(--charcoal);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: calc(var(--z-header) - 1);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Desktop Navigation */
@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }

    .nav-list {
        display: flex;
        gap: var(--space-lg);
    }

    .nav-item {
        border: none;
    }

    .nav-link {
        padding: var(--space-sm) 0;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--secondary);
        transition: width var(--transition-fast);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

    .nav-overlay {
        display: none;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,214,0,0.2);
    border: 1px solid var(--secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title span {
    color: var(--secondary);
}

.hero-description {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

/* Hero Credentials */
.hero-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.credential-badge {
    display: inline-block;
    background: rgba(255, 214, 0, 0.9);
    color: var(--primary-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    justify-content: center;
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-decoration {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--white);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Service Cards
   ============================================ */
.services {
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--primary);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-full);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 576px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.service-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Featured Service Card */
.service-card.featured {
    position: relative;
    border: 2px solid var(--secondary);
    background: linear-gradient(135deg, rgba(255,214,0,0.05) 0%, rgba(255,255,255,1) 100%);
}

.service-card.featured:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
}

.service-badge {
    position: absolute;
    top: -12px;
    right: var(--space-md);
    background: var(--secondary);
    color: var(--primary-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

.about-credentials-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 35, 126, 0.95);
    padding: var(--space-md);
}

.credential-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-icon {
    font-size: 1.25rem;
}

.about-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.about-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--primary);
}

.about-feature span {
    font-size: 0.95rem;
    color: var(--charcoal);
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-2xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    padding: var(--space-lg);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--charcoal);
}

.contact-item p {
    color: var(--dark-gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--primary);
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.form-checkbox input {
    margin-top: 4px;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.8);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-legal {
        justify-content: flex-end;
    }
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--secondary);
}

/* ============================================
   Fixed Contact Buttons (Mobile)
   ============================================ */
.fixed-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: var(--z-fixed);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.fixed-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

.fixed-btn-kakao {
    background: #FEE500;
    color: #3C1E1E;
}

.fixed-btn:active {
    transform: scale(0.98);
}

@media (min-width: 992px) {
    .fixed-buttons {
        display: none;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: var(--white); }
.text-gray { color: var(--dark-gray); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-light { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Form Styles (Auth Pages)
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-lg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--dark-gray);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--medium-gray);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   Alert Messages
   ============================================ */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success);
    color: #2E7D32;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--error);
    color: #C62828;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--warning);
    color: #E65100;
}

/* ============================================
   Page Content Styles
   ============================================ */
.page-content {
    padding-top: 80px;
    min-height: 100vh;
}

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
}

.page-header h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0;
}

.page-body {
    padding: var(--space-2xl) 0;
}

/* ============================================
   Table Styles
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table th,
.table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--charcoal);
}

.table tr:hover {
    background: rgba(26, 35, 126, 0.02);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeIn { animation: fadeIn 0.5s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.5s ease forwards; }

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Body padding for fixed footer */
body.has-fixed-buttons {
    padding-bottom: 60px;
}

@media (min-width: 992px) {
    body.has-fixed-buttons {
        padding-bottom: 0;
    }
}
