/* Layout & global */
:root {
    --nav-width: 220px;
    --bg: #f7f7f7;
    --muted: #718096;
    --brand: #2d3748;
    --card-bg: #fff;
    --border: #e6e6e6;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: #222;
}
.container {
    margin-left: var(--nav-width);
    padding: 2rem;
}

/* Nav */
nav {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--nav-width);
    height: 100vh;
    background: var(--brand);
    color: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}
nav ul { list-style: none; padding: 0; margin: 0; }
nav ul li { margin: 0; }
nav ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 1rem 1.25rem;
    transition: background .15s ease;
}
nav ul li a:hover { background: #4a5568; }

/* Buttons */
.button, button, .btn {
    display: inline-block;
    padding: .5rem .9rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: .95rem;
}
.button.secondary { background: var(--muted); }

/* Flash messages */
.flashes { margin-bottom: 1rem; padding: 0; list-style: none; }
.flashes li {
    background: #fff5f5;
    color: #c53030;
    padding: .5rem 1rem;
    margin-bottom: .5rem;
    border-radius: 4px;
    border: 1px solid #fee2e2;
}

/* Tables (calendar view) */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
thead th {
    text-align: left;
    background: #f5f7fa;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: .95rem;
}
tbody td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    font-size: .95rem;
}
tbody tr:last-child td { border-bottom: none; }

/* Meeting view grid and cards */
.meeting-view { max-width: 1200px; margin: 0 auto; }
.meeting-meta { background: #f9fafb; padding: 1rem; border-radius: 6px; margin: 1rem 0; }
.meeting-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}
.column {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.column h3 { margin-top: 0; font-size: 1rem; margin-bottom: .6rem; border-bottom: 1px solid #eef2f6; padding-bottom: .45rem; }
.topic-list, .action-list { list-style: none; padding: 0; margin: 0; }
.topic-list li, .action-list li { padding: .5rem 0; border-bottom: 1px solid #f1f5f9; }
.topic-list li:last-child, .action-list li:last-child { border-bottom: none; }

.form-control, textarea, input[type="text"], input[type="datetime-local"], select {
    width: 100%;
    padding: .5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: .75rem;
    background: #fff;
}

/* Utilities */
.small { font-size: .88rem; color: #555; }
.empty { color: #a0aec0; font-style: italic; }

/* Responsive */
@media (max-width: 900px) {
    .container { padding: 1rem; margin-left: 0; }
    nav { position: relative; width: 100%; height: auto; }
    .meeting-content { grid-template-columns: 1fr; }
    table { font-size: .9rem; }
}

/* Meetings list table */
.meeting-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.meeting-table thead th { background: #f8fafc; padding: .6rem; border-bottom: 1px solid var(--border); text-align: left; }
.meeting-table tbody td { padding: .6rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.meeting-table tbody tr:last-child td { border-bottom: none; }
.meeting-table a.button { padding: .35rem .6rem; font-size: .88rem; }
.meeting-table td .small { color: #616e7c; font-size: .9rem; }
.meeting-table .empty { padding: 1rem; color: #9aa3ad; }

@media (max-width: 700px) {
    .meeting-table thead { display: none; }
    .meeting-table, .meeting-table tbody, .meeting-table tr, .meeting-table td { display: block; width: 100%; }
    .meeting-table tr { margin-bottom: .75rem; }
    .meeting-table td { padding-left: 0; }
}