/* ============================================
   SP APELDOORN — Main Stylesheet
   Geïnspireerd op apeldoorn.sp.nl
   ============================================ */

:root {
    --sp-rood: #E3000F;
    --sp-rood-donker: #B8000C;
    --sp-rood-licht: #FF1A2E;
    --sp-mint: #5DBDB6;
    --sp-mint-donker: #4AA49E;
    --sp-zwart: #1a1a1a;
    --sp-grijs: #6b7280;
    --sp-grijs-licht: #f3f4f6;
    --sp-wit: #ffffff;
    --sp-goud: #F4A261;
    --sp-border: #e5e7eb;
    --sp-success: #10b981;
    --sp-warning: #f59e0b;
    --sp-danger: #ef4444;
    --sp-info: #3b82f6;
    --sp-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --sp-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    color: var(--sp-zwart);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== NAVIGATIE ===== */
.main-nav {
    background: linear-gradient(90deg, var(--sp-rood) 0%, var(--sp-rood-donker) 100%);
    color: var(--sp-wit);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(227, 0, 15, 0.3);
    border-bottom: 4px solid var(--sp-mint);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    color: var(--sp-wit);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-brand img {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    color: var(--sp-wit) !important;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: var(--sp-wit) !important;
}

.nav-admin {
    background: rgba(255,255,255,0.2) !important;
    font-weight: 700;
}

.nav-admin:hover {
    background: rgba(255,255,255,0.3) !important;
}

.nav-user {
    position: relative;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-user:hover {
    background: rgba(255,255,255,0.15);
}

.user-name {
    font-weight: 600;
    color: var(--sp-wit);
    font-size: 14px;
}

.role-badge {
    background: var(--sp-mint) !important;
    color: var(--sp-zwart) !important;
    font-weight: 700;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--sp-wit);
    border-radius: var(--radius);
    box-shadow: var(--sp-shadow-lg);
    min-width: 200px;
    margin-top: 8px;
    overflow: hidden;
    border: 2px solid var(--sp-rood);
    z-index: 1001;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--sp-zwart);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.user-dropdown a:hover {
    background: var(--sp-rood);
    color: var(--sp-wit);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - 120px);
}

.container {
    width: 100%;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(135deg, var(--sp-rood) 0%, var(--sp-rood-donker) 100%);
    color: var(--sp-wit);
    padding: 30px;
    border-radius: 0 0 var(--radius) var(--radius);
    margin: -30px -20px 30px -20px;
    box-shadow: 0 4px 20px rgba(227, 0, 15, 0.3);
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: var(--sp-wit);
}

.page-actions {
    display: flex;
    gap: 8px;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--sp-wit);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--sp-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

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

.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sp-rood);
    line-height: 1;
}

.stat-label {
    color: var(--sp-grijs);
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: var(--sp-wit);
    border-radius: var(--radius);
    box-shadow: var(--sp-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sp-shadow-lg);
}

.card-header {
    padding: 20px;
    border-bottom: 3px solid var(--sp-mint);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.card-header h2 {
    font-size: 1.2rem;
    color: var(--sp-zwart);
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

/* ===== LISTS ===== */
.meeting-list,
.assignment-list {
    list-style: none;
}

.meeting-list li,
.assignment-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-border);
}

.meeting-list li:last-child,
.assignment-list li:last-child {
    border-bottom: none;
}

.meeting-list a,
.assignment-list a {
    color: var(--sp-zwart);
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: color 0.2s;
}

.meeting-list a:hover,
.assignment-list a:hover {
    color: var(--sp-rood);
}

.meeting-title,
.assignment-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.meeting-meta,
.assignment-meta {
    font-size: 0.85rem;
    color: var(--sp-grijs);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--sp-zwart);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--sp-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--sp-wit);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sp-rood);
    box-shadow: 0 0 0 4px rgba(227, 0, 15, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-max-width {
    max-width: 600px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sp-rood) 0%, var(--sp-rood-donker) 100%);
    color: var(--sp-wit);
    box-shadow: 0 2px 8px rgba(227, 0, 15, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--sp-rood-licht) 0%, var(--sp-rood) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(227, 0, 15, 0.4);
}

.btn-secondary {
    background: var(--sp-grijs-licht);
    color: var(--sp-zwart);
    border: 2px solid var(--sp-border);
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: var(--sp-grijs);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--sp-success) 0%, #059669 100%);
    color: var(--sp-wit);
}

.btn-danger {
    background: linear-gradient(135deg, var(--sp-danger) 0%, #dc2626 100%);
    color: var(--sp-wit);
}

.btn-warning {
    background: linear-gradient(135deg, var(--sp-warning) 0%, #d97706 100%);
    color: var(--sp-wit);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: transparent;
    color: var(--sp-rood);
    padding: 10px 0;
    text-transform: none;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    background: var(--sp-wit);
    border-radius: var(--radius);
    box-shadow: var(--sp-shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-border);
}

.data-table th {
    background: var(--sp-grijs-licht);
    font-weight: 700;
    color: var(--sp-zwart);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: var(--sp-grijs-licht);
}

.data-table tr.blocked {
    opacity: 0.6;
    background: #fff5f5;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-open,
.badge-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.badge-closed,
.badge-secondary {
    background: var(--sp-grijs-licht);
    color: var(--sp-grijs);
}

.badge-upcoming {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.badge-past {
    background: var(--sp-grijs-licht);
    color: var(--sp-grijs);
}

.badge-admin {
    background: linear-gradient(135deg, var(--sp-rood) 0%, var(--sp-rood-donker) 100%);
    color: var(--sp-wit);
}

.badge-member {
    background: var(--sp-grijs-licht);
    color: var(--sp-grijs);
}

.badge-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.badge-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* ===== ALERTS ===== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    background: linear-gradient(135deg, var(--sp-rood) 0%, var(--sp-rood-donker) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: var(--sp-wit);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--sp-shadow-lg);
}

.login-box .logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-box .logo h1 {
    color: var(--sp-rood);
    font-size: 2rem;
    margin-bottom: 4px;
    font-weight: 800;
}

.login-box .logo p {
    color: var(--sp-grijs);
    font-size: 1rem;
}

.form-links {
    text-align: center;
    margin-top: 16px;
}

.form-links a {
    color: var(--sp-rood);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-links a:hover {
    text-decoration: underline;
}

/* ===== SECTIONS ===== */
.section {
    background: var(--sp-wit);
    border-radius: var(--radius);
    box-shadow: var(--sp-shadow);
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    border: none;
}

.section:hover {
    box-shadow: var(--sp-shadow-lg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sp-zwart);
}

/* ===== AGENDA ITEMS ===== */
.agenda-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agenda-item {
    border: 1px solid var(--sp-border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s ease;
    background: var(--sp-wit);
}

.agenda-item:hover {
    box-shadow: var(--sp-shadow);
    transform: translateY(-2px);
}

.item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.item-number {
    background: linear-gradient(135deg, var(--sp-rood) 0%, var(--sp-rood-donker) 100%);
    color: var(--sp-wit);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(227, 0, 15, 0.3);
}

.item-header h3 {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
}

.item-description {
    color: var(--sp-grijs);
    margin-bottom: 12px;
    line-height: 1.5;
}

.position-box {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-left: 4px solid var(--sp-rood);
    padding: 16px;
    margin: 12px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.position-box strong {
    color: var(--sp-rood);
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.item-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 12px 0;
    font-size: 0.85rem;
    color: var(--sp-grijs);
}

.assignee.unassigned {
    color: var(--sp-danger);
    font-style: italic;
}

.item-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ===== COMMENTS ===== */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.comment {
    background: var(--sp-grijs-licht);
    padding: 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--sp-mint);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: 700;
    color: var(--sp-rood);
}

.comment-date {
    color: var(--sp-grijs);
    font-size: 0.8rem;
}

.comment-form textarea {
    min-height: 80px;
}

/* ===== VOTING ===== */
.vote-summary {
    margin-bottom: 20px;
}

.vote-bar {
    display: flex;
    height: 32px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 8px;
}

.vote-for {
    background: linear-gradient(135deg, var(--sp-success) 0%, #059669 100%);
}

.vote-against {
    background: linear-gradient(135deg, var(--sp-danger) 0%, #dc2626 100%);
}

.vote-abstain {
    background: linear-gradient(135deg, var(--sp-warning) 0%, #d97706 100%);
}

.vote-legend {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
}

.legend-for { color: var(--sp-success); font-weight: 700; }
.legend-against { color: var(--sp-danger); font-weight: 700; }
.legend-abstain { color: #92400e; font-weight: 700; }

.vote-form {
    margin-bottom: 20px;
}

.vote-buttons {
    display: flex;
    gap: 12px;
}

.vote-buttons button {
    flex: 1;
}

.voted {
    padding: 12px;
    background: var(--sp-grijs-licht);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border-left: 3px solid var(--sp-mint);
}

.vote-list {
    margin-top: 16px;
}

.vote-list ul {
    list-style: none;
}

.vote-list li {
    padding: 4px 0;
    font-size: 0.9rem;
}

.vote-voor { color: var(--sp-success); font-weight: 700; }
.vote-tegen { color: var(--sp-danger); font-weight: 700; }
.vote-onthouding { color: var(--sp-grijs); font-weight: 700; }

/* ===== CHAT ===== */
.chat-page {
    background: var(--sp-grijs-licht);
}

.chat-page .main-nav {
    position: relative;
}

.chat-main {
    height: calc(100vh - 60px);
    padding: 0;
    max-width: none;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--sp-wit);
    border-radius: var(--radius);
    box-shadow: var(--sp-shadow-lg);
    overflow: hidden;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 3px solid var(--sp-mint);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius);
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.message-own {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--sp-rood) 0%, var(--sp-rood-donker) 100%);
    color: var(--sp-wit);
    border-bottom-right-radius: 4px;
}

.message-other {
    align-self: flex-start;
    background: var(--sp-grijs-licht);
    color: var(--sp-zwart);
    border-bottom-left-radius: 4px;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.message-own .message-header {
    color: rgba(255,255,255,0.8);
}

.message-other .message-header {
    color: var(--sp-grijs);
}

.message-time {
    font-size: 0.75rem;
}

.message-body {
    line-height: 1.5;
}

.chat-input {
    padding: 16px 20px;
    border-top: 1px solid var(--sp-border);
    background: var(--sp-wit);
}

.chat-input .input-group {
    display: flex;
    gap: 12px;
}

.chat-input textarea {
    flex: 1;
    resize: none;
    min-height: 48px;
    max-height: 120px;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--sp-wit);
    padding: 30px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--sp-shadow-lg);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--sp-zwart);
    font-weight: 700;
}

.close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--sp-grijs);
    transition: color 0.2s;
}

.close:hover {
    color: var(--sp-rood);
}

/* ===== FILTERS ===== */
.filter-bar {
    background: var(--sp-wit);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--sp-shadow);
    margin-bottom: 24px;
}

.filter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--sp-border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--sp-rood);
    box-shadow: 0 0 0 3px rgba(227, 0, 15, 0.1);
    outline: none;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--sp-grijs);
}

.breadcrumb a {
    color: var(--sp-rood);
    text-decoration: none;
    font-weight: 600;
}

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

/* ===== MINUTES ===== */
.minutes-content {
    background: var(--sp-grijs-licht);
    padding: 20px;
    border-radius: var(--radius);
    line-height: 1.8;
    border-left: 4px solid var(--sp-mint);
}

/* ===== EMPTY STATE ===== */
.empty {
    text-align: center;
    padding: 40px;
    color: var(--sp-grijs);
    font-style: italic;
    font-size: 1.1rem;
}

/* ===== MEETING DESCRIPTION ===== */
.meeting-description {
    background: var(--sp-wit);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--sp-shadow);
    margin-bottom: 24px;
    line-height: 1.6;
    border-left: 4px solid var(--sp-mint);
}

.meeting-meta {
    color: var(--sp-grijs);
    font-size: 0.9rem;
}

/* ===== ITEM META BAR ===== */
.item-meta-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ===== POSITION DISPLAY ===== */
.position-display {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-left: 4px solid var(--sp-rood);
    padding: 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(90deg, var(--sp-zwart) 0%, #2d2d2d 100%);
    color: var(--sp-wit);
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 40px;
}

.footer-meta {
    color: var(--sp-grijs);
    margin-top: 4px;
}

/* ===== ADMIN SPECIFIC ===== */
.admin .main-content {
    max-width: 1200px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.admin-card {
    background: var(--sp-wit);
    border-radius: var(--radius);
    box-shadow: var(--sp-shadow);
    padding: 24px;
    transition: all 0.3s ease;
    border: none;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sp-shadow-lg);
}

.admin-card h2 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--sp-zwart);
    font-weight: 700;
    border-bottom: 3px solid var(--sp-mint);
    padding-bottom: 10px;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-actions .btn {
    text-align: left;
    justify-content: flex-start;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
}

.quick-actions .btn:hover {
    transform: translateX(4px);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    padding: 12px;
    background: var(--sp-grijs-licht);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--sp-rood);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.activity-item:hover {
    background: #e5e7eb;
}

.activity-time {
    color: var(--sp-grijs);
    font-size: 0.8rem;
    font-weight: 600;
}

.activity-user {
    font-weight: 700;
    color: var(--sp-zwart);
}

.activity-action {
    color: var(--sp-rood);
    font-weight: 600;
}

.import-results {
    background: var(--sp-wit);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--sp-shadow);
}

.result-stats {
    display: flex;
    gap: 24px;
    margin: 16px 0;
}

.result-success {
    color: var(--sp-success);
    font-weight: 700;
}

.result-failed {
    color: var(--sp-danger);
    font-weight: 700;
}

.result-errors {
    margin-top: 16px;
}

.result-errors ul {
    list-style: none;
    margin-top: 8px;
}

.result-errors li {
    padding: 4px 0;
    color: var(--sp-danger);
    font-size: 0.9rem;
}

.csv-example {
    margin-top: 24px;
    padding: 16px;
    background: var(--sp-grijs-licht);
    border-radius: var(--radius-sm);
}

.csv-example pre {
    background: var(--sp-zwart);
    color: var(--sp-wit);
    padding: 12px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.85rem;
}

.sync-info {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border-left: 4px solid var(--sp-info);
}

.parlaeus-meetings {
    margin-top: 30px;
}

.help-text {
    color: var(--sp-grijs);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    background: var(--sp-wit);
    color: var(--sp-rood);
    border: 2px solid var(--sp-border);
}

.pagination a:hover {
    background: var(--sp-rood);
    color: var(--sp-wit);
    border-color: var(--sp-rood);
}

.pagination span {
    background: var(--sp-rood);
    color: var(--sp-wit);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--sp-grijs-licht);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: var(--sp-rood);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--sp-rood-donker);
}

/* ===== ANIMATIES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section,
.dashboard-card,
.admin-card,
.stat-card,
.agenda-item {
    animation: fadeInUp 0.4s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .stats-grid,
    .dashboard-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .vote-buttons {
        flex-direction: column;
    }

    .chat-container {
        max-width: 100%;
        border-radius: 0;
    }

    .message {
        max-width: 85%;
    }

    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .dashboard-grid,
    .admin-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-card,
    .admin-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .quick-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .quick-actions .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .page-header h1 {
        font-size: 20px;
    }
}

/* ===== PRINT ===== */
@media print {
    .main-nav,
    .main-footer,
    .page-actions,
    .item-actions,
    .chat-input,
    .btn {
        display: none !important;
    }

    .main-content {
        padding: 0;
        max-width: none;
    }

    .section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
