:root {
    --color-primary: #1a365d;
    --color-accent: #2b6cb0;
    --color-bg: #f7fafc;
    --color-card: #ffffff;
    --color-text: #2d3748;
    --color-muted: #718096;
    --color-border: #e2e8f0;
    --color-success: #38a169;
    --color-warning: #d69e2e;
    --color-open: #e53e3e;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--color-primary);
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

header .subtitle {
    opacity: 0.8;
    font-size: 1rem;
}

main {
    flex: 1;
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Navigation Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.card p {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* Content Pages */
.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--color-accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.content-section {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.content-section h2 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

.content-section h3 {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
}

.content-section ul {
    list-style: none;
    padding: 0;
}

.content-section ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.content-section ul li:last-child {
    border-bottom: none;
}

.content-section ul li::before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Status Table */
.status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.status-table th,
.status-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.status-table th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-primary);
}

.status-table tr:hover td {
    background: #f0f4f8;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge--done {
    background: #c6f6d5;
    color: #22543d;
}

.badge--progress {
    background: #fefcbf;
    color: #744210;
}

.badge--open {
    background: #fed7d7;
    color: #742a2a;
}

/* Detail items */
.detail-item {
    margin-bottom: 0.5rem;
}

.detail-item strong {
    color: var(--color-primary);
}

.note {
    background: #fffff0;
    border-left: 4px solid var(--color-warning);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.9rem;
}

.note--open {
    background: #fff5f5;
    border-left-color: var(--color-open);
}

footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.4rem;
    }

    .content-section {
        padding: 1.25rem;
    }

    .status-table th,
    .status-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Password Protection Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.password-box {
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 320px;
    width: 90%;
}

.password-box h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.password-box input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.password-box input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

.password-box button {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.password-box button:hover {
    background: var(--color-primary);
}

.password-error {
    color: var(--color-open);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.note--done {
    background: #f0fff4;
    border-left-color: var(--color-success);
}
