:root {
    --primary-color: #195850;
    --secondary-color: #4a8fb8;
    --accent-color: #68b3d8;
    --light-bg: #f8f9fa;
    --white: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e1e8ed;
    --text-primary: #1a2332;
    --text-secondary: #5a6c7d;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}


.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3.5rem 0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}


.hero-stats {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 0.1rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-right: 0.75rem;
    font-weight: 500;
}

.hero-stats-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}


.section-header {
    margin: 3rem 0 2rem;
    position: relative;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 0.1rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 0.1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.stat-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
}

.stat-card-body {
    padding: 1.5rem;
}

.stat-metrics {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 0.1rem;
}

.stat-metric {
    text-align: center;
}

.stat-metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 250px;
}

.chart-container-lg {
    position: relative;
    height: 300px;
}

.chart-container-xl {
    position: relative;
    height: 400px;
}

.detailed-section .stat-card-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}


body {
    font-family: "Nanum Gothic", sans-serif;
    font-weight: 400;
    background-color: var(--white);
    color: #1a2332;
    font-size: 100%;
    word-break: keep-all;
}


/* Progress bar */
.progress {
    height: 4px;
    width: 100%;
    border-radius: 2px;
    background-clip: padding-box;
    overflow: hidden;
    position: relative;
}

.progress {
    opacity: 0;
}

.htmx-request .progress {
    opacity: 1;
}

.htmx-request.progress {
    opacity: 1;
}

.progress .indeterminate {
    background-color: blue;
}

.progress .indeterminate:before {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.progress .indeterminate:after {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    -webkit-animation-delay: 1.15s;
    animation-delay: 1.15s;
}

@keyframes indeterminate {
    0% {
        left: -35%;
        right: 100%;
    }

    60% {
        left: 100%;
        right: -90%;
    }

    100% {
        left: 100%;
        right: -90%;
    }
}

@keyframes indeterminate-short {
    0% {
        left: -200%;
        right: 100%;
    }

    60% {
        left: 107%;
        right: -8%;
    }

    100% {
        left: 107%;
        right: -8%;
    }
}


.badge-custom {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 0.1rem;
}

.nav-pills .nav-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    border-radius: 0.1rem;
    margin-bottom: 0.5rem;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-tabs .nav-link {
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-pane:not(.active) {
    display: none;
    height: 0;
    overflow: hidden;
}

.card {
    border-radius: 0.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.1rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border-radius: 0.1rem;
    font-size: 0.9rem;
}

.required {
    color: #dc3545;
    font-weight: 600;
}

.computed-badge {
    background: #e1f0ee;
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.1rem;
    font-size: 0.75rem;
}

.alert-warning {
    background: #fdf7e3;
    border-color: #f1e0a2;
    color: #8a6b1f;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.1rem;
}

.btn-primary:hover {
    background-color: #134640;
    border-color: #134640;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.1rem;
}

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


