/* ============================================================
   AgendaVertical — Google Calendar integration styles for QueBot
   ============================================================ */

#agendaVertical.hidden {
    display: none;
}

/* === Vertical Container === */
.av-vertical {
    padding: 0;
    max-width: 100%;
}

.av-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    background: var(--bg-primary, #0f172a);
    z-index: 5;
}

.av-back-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.av-back-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, #e2e8f0);
}

.av-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    flex: 1;
}

.av-header-actions {
    display: flex;
    gap: 4px;
}
.av-header-actions button {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}
.av-header-actions button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.av-body {
    padding: 16px 20px;
}

/* === Connect View === */
.av-connect-view {
    text-align: center;
    padding: 40px 20px;
}
.av-connect-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.av-connect-view h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    margin-bottom: 8px;
}
.av-connect-view p {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.av-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4285F4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}
.av-connect-btn:hover {
    background: #3367D6;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    transform: translateY(-1px);
}

.av-connect-note {
    font-size: 0.8rem !important;
    color: var(--text-muted, #64748b) !important;
    margin-top: 16px !important;
}

/* === Events View === */
.av-day-group {
    margin-bottom: 20px;
}

.av-day-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    padding: 4px 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 8px;
}

.av-event-card {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}
.av-event-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.av-event-time {
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 55px;
    padding-top: 2px;
}

.av-event-info {
    flex: 1;
    min-width: 0;
}

.av-event-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary, #e2e8f0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.av-event-location {
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    margin-top: 2px;
}

/* === Empty State === */
.av-empty {
    text-align: center;
    padding: 40px 20px;
}
.av-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.av-empty p {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
    line-height: 1.5;
}
.av-muted {
    color: var(--text-muted, #64748b) !important;
    font-size: 0.8rem !important;
}

/* === Loading === */
.av-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--text-secondary, #94a3b8);
}
.av-loading-sm {
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}

.av-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: av-spin 0.8s linear infinite;
}

@keyframes av-spin {
    to { transform: rotate(360deg); }
}

/* === Calendar Action Cards (in chat) === */
.av-action-card {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 10px 0;
    max-width: 380px;
}

.av-action-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.av-action-icon {
    font-size: 1.2rem;
}
.av-action-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary, #e2e8f0);
}

.av-action-detail {
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
    padding: 2px 0;
}

.av-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.av-action-confirm {
    background: #22c55e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.av-action-confirm:hover {
    background: #16a34a;
}

.av-action-cancel {
    background: transparent;
    color: var(--text-secondary, #94a3b8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.av-action-cancel:hover {
    background: rgba(255, 255, 255, 0.04);
}

.av-action-status {
    margin-top: 8px;
    font-size: 0.85rem;
}

.av-success {
    color: #22c55e;
}
.av-error {
    color: #ef4444;
    font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 640px) {
    .av-body {
        padding: 12px 16px;
    }
    .av-connect-view {
        padding: 24px 16px;
    }
    .av-action-card {
        max-width: 100%;
    }
}
