﻿:root {
    --primary: #0f4c81;
    --primary-dark: #0b3a63;
    --primary-light: #eaf2fb;
    --danger: #b91c1c;
    --success: #166534;
    --warning-bg: #fff7ed;
    --warning-border: #fed7aa;
    --warning-text: #9a3412;
    --text: #111827;
    --muted: #6b7280;
    --border: #d1d5db;
    --bg: #f3f6fa;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
}

h1 {
    font-size: 30px;
    line-height: 1.25;
    margin: 0;
    font-weight: 700;
}

h2 {
    font-size: 24px;
    color: var(--primary);
    margin: 0 0 18px;
    font-weight: 700;
}

h3 {
    font-size: 19px;
    color: var(--primary);
    margin: 0 0 12px;
    font-weight: 700;
}

p {
    margin: 8px 0 12px;
}

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

.header {
    background: var(--primary);
    color: white;
    padding: 22px 20px;
    text-align: center;
}

.header p {
    margin: 8px 0 0;
    font-size: 16px;
}

.top-nav {
    background: var(--primary-dark);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-nav a {
    color: white;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.top-nav a:hover {
    background: rgba(255,255,255,0.16);
}

.container {
    max-width: 1180px;
    margin: 28px auto;
    padding: 0 18px;
}

.card {
    background: var(--white);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 22px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.module-card {
    background: var(--white);
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.module-card h3 {
    margin-bottom: 8px;
}

.module-card p {
    color: var(--muted);
    min-height: 48px;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-danger {
    background: var(--danger);
}

.notice {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.success {
    background: #dcfce7;
    color: var(--success);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    border: 1px solid var(--border);
    padding: 10px;
    vertical-align: top;
}

th {
    background: var(--primary-light);
    text-align: center;
    font-weight: 700;
}

.footer {
    text-align: center;
    color: var(--muted);
    padding: 24px 16px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }
}
