* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-bg: #eef2ff;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --success-bg: #d1fae5;
    --success-text: #065f46;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --info: #3b82f6;
    --info-bg: #dbeafe;
    --info-text: #1e40af;
    --daily-bg: #f3e8ff;
    --daily-text: #7c3aed;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-hover: #334155;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: #475569;
    --border-light: #334155;
    --primary-bg: #312e81;
    --success-bg: #064e3b;
    --success-text: #34d399;
    --warning-bg: #78350f;
    --warning-text: #fbbf24;
    --danger-bg: #7f1d1d;
    --danger-text: #f87171;
    --info-bg: #1e3a8a;
    --info-text: #60a5fa;
    --daily-bg: #4c1d95;
    --daily-text: #c084fc;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #7c3aed 100%);
    padding: 20px 30px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 400;
}

.header-stats {
    display: flex;
    gap: 20px;
}

.stat-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-badge .num {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.stat-badge .lbl {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.header-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* Hero / Landing Section */
.hero-section {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border-light);
}
.hero-logo {
    margin: 0 auto 24px;
    width: 72px;
    height: 72px;
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* Main Layout */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
}

.layout-centered {
    grid-template-columns: 400px;
    justify-content: center;
}

.layout-full {
    grid-template-columns: 1fr;
}

/* Card Styles */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.card-body {
    padding: 24px;
}

/* Form Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

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

.form-group:focus-within label {
    color: var(--primary-dark);
}

input, textarea, select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--surface);
    transition: var(--transition);
    outline: none;
}

input:hover, textarea:hover, select:hover {
    border-color: var(--primary-light);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg), var(--shadow-sm);
    transform: translateY(-1px);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    resize: vertical;
    min-height: 60px;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* Recurring Type Visual Selector */
.recurring-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.recurring-option {
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
}

.recurring-option:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}

.recurring-option.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary-dark);
    font-weight: 600;
}

.recurring-option .r-icon {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: var(--surface);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--primary-bg);
}

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-icon {
    width: auto;
    padding: 8px 14px;
}

.btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Calendar Styles */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

.calendar-nav h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.nav-buttons {
    display: flex;
    gap: 6px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.today-btn {
    width: auto;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 16px;
}

.day-header {
    font-weight: 700;
    text-align: center;
    padding: 10px 4px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-header:last-child {
    color: var(--danger);
}

.day-cell {
    min-height: 110px;
    border: 1px solid transparent;
    padding: 6px;
    cursor: pointer;
    border-radius: 10px;
    position: relative;
    transition: var(--transition);
    background: var(--surface);
}

.day-cell:hover {
    background: var(--surface-hover);
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.day-cell.today {
    border: 2px solid var(--primary);
    background: var(--primary-bg);
}

.day-cell.today .date-num {
    background: var(--primary);
    color: white;
}

.day-cell.other-month {
    opacity: 0.35;
}

.day-cell.sunday .date-num {
    color: var(--danger);
}

/* Background kotak kalender sesuai agenda */
.day-cell.bg-once { background: var(--info-bg); }
.day-cell.bg-daily { background: var(--daily-bg); }
.day-cell.bg-weekly { background: var(--success-bg); }
.day-cell.bg-monthly { background: var(--warning-bg); }

.day-cell.bg-once:hover { border-color: var(--info); }
.day-cell.bg-daily:hover { border-color: var(--daily-text); }
.day-cell.bg-weekly:hover { border-color: var(--success); }
.day-cell.bg-monthly:hover { border-color: var(--warning); }

/* Memperbaiki tampilan indicator dot pada desktop */
.indicator-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; border: none !important; }
.indicator-dot.tag-once { background: var(--info); }
.indicator-dot.tag-daily { background: var(--daily-text); }
.indicator-dot.tag-weekly { background: var(--success); }
.indicator-dot.tag-monthly { background: var(--warning); }
.indicator-dot.more-dot { background: var(--text-muted); }

.date-num {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: var(--text);
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.tag {
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

.tag:hover {
    transform: scale(1.02);
    filter: brightness(0.95);
}

.tag-once {
    background: var(--info-bg);
    color: var(--info-text);
    border-left: 3px solid var(--info);
}

.tag-weekly {
    background: var(--success-bg);
    color: var(--success-text);
    border-left: 3px solid var(--success);
}

.tag-monthly {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-left: 3px solid var(--warning);
}

.tag-daily {
    background: var(--daily-bg);
    color: var(--daily-text);
    border-left: 3px solid var(--daily-text);
}

.more-events {
    font-size: 9px;
    color: var(--primary);
    font-weight: 600;
    padding: 2px 6px;
    cursor: pointer;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
    color: var(--text-secondary);
}

.modal-close:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.modal-body {
    padding: 20px 24px;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 10px;
    transition: var(--transition);
    position: relative;
}

.event-item:hover {
    background: var(--surface-hover);
    border-color: var(--border);
}

.event-time-badge {
    min-width: 52px;
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.event-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.event-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.event-note {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--border-light);
    padding: 6px 10px;
    border-radius: 6px;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
    opacity: 0;
}

.event-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 13px;
}

/* Search / Filter Bar */
.search-bar {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    padding-left: 38px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

/* Legend */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 24px;
    border-top: 1px solid var(--border-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast-msg {
    font-size: 13px;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Edit Mode Indicator */
.edit-indicator {
    display: none;
    background: var(--warning-bg);
    color: var(--warning-text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    align-items: center;
    gap: 6px;
}

.edit-indicator.show {
    display: flex;
}

.edit-indicator .cancel-edit {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--warning-text);
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    font-size: 11px;
}

/* Responsive */
@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .sidebar {
        order: 2;
    }

    .header-stats {
        display: none;
    }

    .calendar-grid {
        padding: 8px;
        gap: 2px;
    }

    .day-cell {
        min-height: 70px;
        padding: 4px;
    }

    .date-num {
        font-size: 11px;
        width: 22px;
        height: 22px;
    }

    .tag {
        font-size: 7px;
        padding: 1px 3px;
    }

    .indicator-dot {
        width: 6px;
        height: 6px;
    }
    .indicator-dot.more-dot {
        width: 4px;
        height: 4px;
    }

    .day-header {
        font-size: 9px;
        padding: 6px 2px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-section {
        padding: 50px 20px;
    }
    .app-header {
        padding: 14px 16px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

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

    .recurring-options {
        grid-template-columns: 1fr 1fr;
    }

    .btn-grid {
        grid-template-columns: 1fr;
    }
}

/* Quick Date Shortcuts */
.date-shortcuts {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.date-shortcut {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.date-shortcut:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

/* Completed Event */
.event-item.completed {
    opacity: 0.5;
}

.event-item.completed h4 {
    text-decoration: line-through;
}

.complete-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: none;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.complete-btn:hover {
    border-color: var(--success);
    background: var(--success-bg);
}

.complete-btn.done {
    background: var(--success);
    border-color: var(--success);
}

.complete-btn.done::after {
    content: '✓';
    color: white;
    font-size: 11px;
    font-weight: 700;
}

/* Table Styles for Monthly Agenda */
.agenda-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    min-width: 650px;
}

.agenda-table th, .agenda-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text);
    vertical-align: middle;
}

.agenda-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

/* Footer */
.app-footer {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    padding: 30px 24px;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); }

/* Progress Bar */
.progress-bg {
    background: var(--border-light);
    border-radius: 8px;
    height: 10px;
    width: 100%;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--success), #34d399);
    height: 100%;
    width: 0%;
    border-radius: 8px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.agenda-table tr:hover {
    background: var(--surface-hover);
}

.keterangan-input {
    width: 100%;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    transition: var(--transition);
    background: var(--surface);
}

.keterangan-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* Responsive Table Evaluasi */
@media (max-width: 768px) {
    /* Responsive Header / Navbar */
    .header-content {
        flex-direction: column;
        gap: 14px;
    }
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 14px;
    }
    .logo-section {
        width: 100%;
        justify-content: center;
    }
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .header-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 8px 12px;
        font-size: 11px;
        white-space: nowrap;
    }
    #themeToggle {
        flex: 0 0 auto !important;
    }

    .agenda-table {
        min-width: 100%;
        display: block;
    }
    .agenda-table thead {
        display: none;
    }
    .agenda-table tbody {
        display: block;
        width: 100%;
    }
    .agenda-table tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 16px;
        padding: 12px;
        background: var(--surface);
    }
    .agenda-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px dashed var(--border-light);
    }
    .agenda-table td:last-child {
        border-bottom: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .agenda-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 11px;
        color: var(--text-secondary);
        text-transform: uppercase;
    }
    .agenda-table tr.empty-row td {
        display: block;
        text-align: center;
        border-bottom: none;
    }
    .agenda-table tr.empty-row td::before {
        content: none;
    }
}