/* Agenda demo — layout inspirado en agenda-estudio.html */

.demo-agenda-page {
    --ag-primary: #de6611;
    --ag-primary-dark: #c95a0f;
    --ag-primary-light: rgba(222, 102, 17, 0.12);
    --ag-surface: var(--card-bg);
    --ag-border: rgba(112, 122, 122, 0.28);
    --ag-text-muted: var(--text-secondary);
}

.demo-agenda-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .demo-agenda-grid { grid-template-columns: 1fr; }
}

.demo-agenda-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-agenda-card {
    background: var(--ag-surface);
    border: 1px solid var(--ag-border);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 2px 12px var(--shadow);
}

.demo-agenda-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 10px;
    background: var(--ag-primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.demo-agenda-btn-primary:hover { background: var(--ag-primary-dark); }
.demo-agenda-btn-primary:active { transform: scale(0.98); }

.demo-datepicker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.demo-datepicker-header button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.demo-datepicker-header button:hover {
    background: var(--ag-primary-light);
    color: var(--ag-primary);
}
.demo-datepicker-month {
    font-weight: 600;
    font-size: 1.05rem;
}
.demo-datepicker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.demo-datepicker-grid .day-name {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ag-text-muted);
    padding: 0.25rem 0;
}
.demo-date-btn {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.demo-date-btn:hover { background: var(--ag-primary-light); }
.demo-date-btn.today { border-color: var(--ag-primary); }
.demo-date-btn.selected {
    background: var(--ag-primary);
    color: #fff;
    font-weight: 700;
}
.demo-date-btn .event-dot {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ag-primary);
}
.demo-date-btn.selected .event-dot { background: #fff; }
.demo-date-btn.other-month { opacity: 0.35; }

.demo-google-status {
    display: flex;
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 10px;
    background: rgba(80, 91, 91, 0.06);
    border: 1px solid var(--ag-border);
    font-size: 0.85rem;
    color: var(--ag-text-muted);
}
.demo-google-status i { color: var(--ag-primary); font-size: 1.2rem; flex-shrink: 0; }
.demo-google-status strong { display: block; color: var(--text-primary); margin-bottom: 0.2rem; }

.demo-agenda-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--ag-border);
    background: var(--ag-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.demo-agenda-btn-secondary:hover {
    border-color: var(--ag-primary);
    color: var(--ag-primary);
}

.demo-events-panel { padding: 1.5rem; }
.demo-events-panel h2 { margin: 0 0 0.25rem; font-size: 1.35rem; }
.demo-events-subtitle { color: var(--ag-text-muted); font-size: 0.9rem; margin: 0 0 1.25rem; }

.demo-events-table {
    width: 100%;
    border-collapse: collapse;
}
.demo-events-table th,
.demo-events-table td {
    text-align: left;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--ag-border);
    vertical-align: middle;
    font-size: 0.9rem;
}
.demo-events-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ag-text-muted);
    font-weight: 600;
}
.demo-events-table tbody tr:hover { background: var(--ag-primary-light); }

.demo-badge {
    display: inline-block;
    padding: 0.2em 0.55em;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.demo-badge--urgent { background: #dc3545; color: #fff; }
.demo-badge--ok { background: #198754; color: #fff; }
.demo-badge--pending { background: rgba(80, 91, 91, 0.15); color: var(--text-primary); }

.demo-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.demo-event-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--ag-border);
    background: transparent;
    color: var(--ag-primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}
.demo-event-action:hover {
    background: var(--ag-primary-light);
    border-color: var(--ag-primary);
}

.demo-no-events {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ag-text-muted);
}
.demo-no-events[hidden] { display: none !important; }

.demo-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.demo-filter-chip {
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--ag-border);
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-primary);
}
.demo-filter-chip.active,
.demo-filter-chip:hover {
    border-color: var(--ag-primary);
    background: var(--ag-primary-light);
    color: var(--ag-primary);
}
