:root {
    --bg: #ffffff;
    --surface: #f9fafb;
    --surface-2: #f3f4f6;
    --border: #e5e7eb;
    --border-strong: #d1d5db;

    --text: #111827;
    --text-2: #374151;
    --text-3: #6b7280;

    --brand-blue: #1d4ed8;
    --brand-blue-700: #1e40af;
    --brand-blue-50: #eff6ff;

    --brand-orange: #ea580c;
    --brand-orange-700: #c2410c;

    --brand-green: #16a34a;
    --brand-green-700: #15803d;

    --success: #16a34a;
    --warning: #ea580c;
    --danger: #dc2626;

    --focus-ring: 0 0 0 3px rgba(29,78,216,.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--brand-blue); }
a:hover { color: var(--brand-blue-700); }

/* Text colors */
.text-orange { color: var(--brand-orange) !important; }
.text-muted { color: var(--text-3) !important; }

/* Background colors */
.bg-orange { background-color: var(--brand-orange) !important; }

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Inputs */
.form-control {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
}
.form-control:focus {
    border-color: var(--brand-blue);
    box-shadow: var(--focus-ring);
    outline: none;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.btn-primary {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
}
.btn-primary:hover {
    background: var(--brand-blue-700);
    border-color: var(--brand-blue-700);
    color: #fff;
}
.btn-secondary, .btn-outline-primary {
    background: var(--bg);
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}
.btn-secondary:hover, .btn-outline-primary:hover {
    background: var(--brand-blue-50);
    color: var(--brand-blue);
}
.btn-success {
    background: var(--brand-green);
    color: #fff;
    border-color: var(--brand-green);
}
.btn-success:hover {
    background: var(--brand-green-700);
    border-color: var(--brand-green-700);
}
.btn-orange {
    background: var(--brand-orange);
    color: #fff;
    border-color: var(--brand-orange);
}
.btn-orange:hover {
    background: var(--brand-orange-700);
    border-color: var(--brand-orange-700);
    color: #fff;
}
.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}
.btn:disabled, .btn.disabled {
    background: var(--border);
    color: var(--text-3);
    border-color: var(--border);
    cursor: not-allowed;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--brand-blue-50) 0%, var(--bg) 100%);
}

/* Feature icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.table th {
    background: var(--surface-2);
    color: var(--text);
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.table tr:nth-child(even) td {
    background: var(--surface);
}
.table tr:hover td {
    background: var(--brand-blue-50);
}

/* Vote Table */
.vote-table th, .vote-table td {
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
}
.vote-table th:first-child, .vote-table td:first-child {
    text-align: left;
    padding-left: 16px;
}

.vote-yes { color: var(--success); }
.vote-no { color: var(--danger); }
.vote-maybe { color: var(--warning); }

.vote-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.vote-btn:hover {
    border-color: var(--brand-blue);
    transform: scale(1.1);
}
.vote-btn.selected-yes {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
.vote-btn.selected-no {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}
.vote-btn.selected-maybe {
    background: var(--warning);
    border-color: var(--warning);
    color: white;
}

/* Vote summary */
.vote-summary {
    background: var(--surface-2) !important;
    font-weight: 600;
}
.best-option {
    background: #ECFDF5 !important;
}

/* Dashboard cards */
.survey-card {
    border-left: 4px solid var(--brand-blue);
}
.event-card {
    border-left: 4px solid var(--brand-orange);
}

/* Date options */
.date-option {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}
.date-option:hover {
    border-color: var(--brand-blue);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: 1px solid;
    padding: 1rem 1.25rem;
}
.alert-success {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}
.alert-info {
    background: var(--brand-blue-50);
    border-color: #BFDBFE;
    color: var(--brand-blue-700);
}
.alert-warning {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}
.alert-danger {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .vote-table { font-size: 0.85rem; }
    .vote-btn { width: 32px; height: 32px; font-size: 0.9rem; }
}
