/* Korean Web Font */
* {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Government Theme Colors */
:root {
    --gov-primary: #1f4e79;
    --gov-secondary: #2d5aa0;
    --gov-accent: #4a90e2;
    --gov-light: #f8f9fa;
    --gov-warning: #ffc107;
    --gov-danger: #dc3545;
    --gov-success: #28a745;
}

body {
    background-color: #f8f9fa;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.gov-header {
    background: linear-gradient(135deg, var(--gov-primary) 0%, var(--gov-secondary) 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gov-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gov-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.gov-logo {
    text-align: right;
    font-size: 1.1rem;
    opacity: 0.9;
}

.gov-logo i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Alert Banner */
.alert-banner {
    background-color: #fff3cd;
    border-bottom: 2px solid var(--gov-warning);
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--gov-accent);
    margin-bottom: 1rem;
}

/* Section Titles */
.section-title {
    color: var(--gov-primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--gov-accent);
}

.subsection-title {
    color: var(--gov-secondary);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--gov-accent);
}

/* Button Styles */
.btn-gov {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-gov:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-card {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-card:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-app {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-app:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-more {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    cursor: default;
}

/* Info Boxes */
.info-box {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.info-box h3 {
    color: var(--gov-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Step Cards */
.step-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gov-accent) 0%, var(--gov-secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h4 {
    color: var(--gov-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    color: var(--gov-accent);
    margin-bottom: 1rem;
}

.contact-card h4 {
    color: var(--gov-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--gov-primary);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody td {
    border-color: #e9ecef;
    vertical-align: middle;
}

/* Footer */
.gov-footer {
    background-color: var(--gov-primary);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.gov-footer p {
    margin-bottom: 0.5rem;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.btn-floating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gov-title {
        font-size: 2rem;
    }
    
    .gov-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .btn-floating {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .gov-header {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .gov-logo {
        text-align: center;
        margin-top: 1rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .step-card, .contact-card {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {
    .floating-buttons,
    .alert-banner {
        display: none !important;
    }
    
    .gov-header {
        background: var(--gov-primary) !important;
        -webkit-print-color-adjust: exact;
    }
    
    .btn {
        border: 2px solid var(--gov-primary) !important;
        color: var(--gov-primary) !important;
        background: transparent !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .info-card,
    .info-box,
    .step-card,
    .contact-card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Focus styles for accessibility */
.btn:focus,
a:focus {
    outline: 3px solid var(--gov-accent);
    outline-offset: 2px;
}

/* Loading animation for buttons */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: currentColor;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
