/* --- modern.css --- */

/* 
 * A modern, clean, and accessible-first stylesheet.
 * Target Audience: 30-60 year olds, mobile-first, potential visual impairments.
 */

:root {
    /* Color Palette: High-contrast, professional, and calm. */
    --primary-color: #005A9C;
    /* A strong, trustworthy blue */
    --secondary-color: #00A9E0;
    /* A lighter, friendly blue for accents */
    --background-color: #F8F9FA;
    /* A very light gray for off-white background */
    --surface-color: #FFFFFF;
    /* For cards and surfaces */
    --text-color-strong: #1A1A1A;
    /* Near-black for high contrast text */
    --text-color-default: #333333;
    /* Dark gray for body text */
    --text-color-light: #666666;
    /* Lighter gray for secondary text */
    --border-color: #DEE2E6;
    /* A light, non-intrusive border color */
    --success-color: #28A745;
    --error-color: #DC3545;
}

/* Base styles and Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--text-color-default);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 18px;
    /* Larger base font size for readability */
    line-height: 1.3;
}

.container {
    max-width: 520px;
    /* Slightly more space */
    margin: 0 auto;
    background-color: var(--surface-color);
    box-sizing: border-box;
    /* 패딩이 100vh 높이 안으로 포함되게 함 */
}

.main-container {
    padding: 1.5rem;
    /* Increased padding for better touch targets */
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color-strong);
    font-weight: 700;
    /* Bold for clear hierarchy */
    line-height: 1.3;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.25rem;
}

/* 36px */
h2 {
    font-size: 1.75rem;
}

/* 28px */
h3 {
    font-size: 1.375rem;
}

/* 22px */

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Buttons and Interactive Elements */
.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    /* 18px */
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn_list {
    display: inline-block;
    width: 100%;
    padding: 1rem 0rem;
    font-size: 1.125rem;
    /* 18px */
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    margin-top: 0.5rem;
}

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

.btn-primary:hover {
    background-color: #004B80;
    /* Darker blue on hover */
    color: var(--surface-color);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--surface-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--background-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

/* Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.main-header .logo {
    height: 2.5rem;
    /* 40px */
}

.main-header .page-title {
    font-size: 1.5rem;
    /* 24px */
    font-weight: 700;
    color: var(--text-color-strong);
}

/* Page header (used on non-main pages) */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header .logo-link {
    flex-shrink: 0;
}

.page-header .logo {
    height: 1.75rem;
    /* 28px */
    width: auto;
}

.page-header .back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.page-header .back-link svg,
.page-header .logo-link svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--text-color-strong);
}

.page-header .page-title {
    flex-grow: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color-strong);
}

.page-header .home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.page-header .home-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Cards */
.card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
select,
input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--surface-color);
    color: var(--text-color-default);
}

select:focus,
input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.2);
}

.nav-item {
    display: block;
    margin-bottom: 0.75rem;
}