﻿/* ========================================
   ENHANCED AGENDA STYLES
   ======================================== */

:root {
    --agenda-primary: #4B2E7F;
    --agenda-secondary: #6A4C93;
    --agenda-accent: #4ECDC4;
    --agenda-success: #2ECC71;
    --agenda-warning: #F39C12;
    --agenda-error: #E74C3C;
    --agenda-dark: #2C3E50;
    --agenda-light: #BDC3C7;
    --agenda-bg-light: #F8FAFC;
    --agenda-white: #FFFFFF;
    --agenda-border: #E2E8F0;
    --agenda-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --agenda-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --agenda-radius: 16px;
    --agenda-radius-small: 8px;
    --agenda-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --agenda-gradient: linear-gradient(135deg, var(--agenda-primary) 0%, var(--agenda-secondary) 100%);
}

/* Main Agenda Container */
.agenda-container {
    background: var(--agenda-white);
    border: 1px solid var(--agenda-border);
    border-radius: var(--agenda-radius);
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 500px;
    box-shadow: var(--agenda-shadow);
    transition: var(--agenda-transition);
    position: relative;
    overflow: hidden;
}

    .agenda-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--agenda-gradient);
    }

    .agenda-container:hover {
        box-shadow: var(--agenda-shadow-hover);
        transform: translateY(-2px);
    }

/* Agenda Header */
.agenda-header {
    background: var(--agenda-gradient);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--agenda-radius) var(--agenda-radius) 0 0;
    position: relative;
    overflow: hidden;
}

    .agenda-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        transform: rotate(45deg);
    }

    .agenda-header h4 {
        margin: 0;
        font-size: 1.3rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        z-index: 1;
    }

    .agenda-header .event-counter {
        background: rgba(255, 255, 255, 0.2);
        padding: 0.3rem 0.8rem;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 500;
        margin-left: auto;
        backdrop-filter: blur(10px);
    }

/* Agenda Content */
.agenda-content {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--agenda-primary) var(--agenda-bg-light);
}

    .agenda-content::-webkit-scrollbar {
        width: 6px;
    }

    .agenda-content::-webkit-scrollbar-track {
        background: var(--agenda-bg-light);
        border-radius: 3px;
    }

    .agenda-content::-webkit-scrollbar-thumb {
        background: var(--agenda-primary);
        border-radius: 3px;
    }

        .agenda-content::-webkit-scrollbar-thumb:hover {
            background: var(--agenda-secondary);
        }

/* Individual Agenda Items */
.agenda-item {
    background: var(--agenda-white);
    border: 1px solid var(--agenda-border);
    border-radius: var(--agenda-radius-small);
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    transition: var(--agenda-transition);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow: hidden;
}

    .agenda-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--agenda-gradient);
        transition: var(--agenda-transition);
    }

    .agenda-item:hover {
        background: var(--agenda-bg-light);
        border-color: var(--agenda-primary);
        transform: translateX(5px);
        box-shadow: var(--agenda-shadow);
    }

        .agenda-item:hover::before {
            width: 6px;
        }

    .agenda-item:last-child {
        margin-bottom: 0;
    }

    /* Event Status Indicators */
    .agenda-item.upcoming::before {
        background: var(--agenda-success);
    }

    .agenda-item.in-progress::before {
        background: var(--agenda-warning);
        animation: pulse-glow 2s infinite;
    }

    .agenda-item.completed::before {
        background: var(--agenda-light);
    }

    .agenda-item.cancelled::before {
        background: var(--agenda-error);
    }

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 5px var(--agenda-warning);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 15px var(--agenda-warning);
    }
}

/* Date Display */
.agenda-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--agenda-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(75, 46, 127, 0.3);
    transition: var(--agenda-transition);
}

    .agenda-date i {
        font-size: 0.8rem;
    }

.agenda-item:hover .agenda-date {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(75, 46, 127, 0.4);
}

/* Event Title/Location */
.agenda-location {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--agenda-dark);
    line-height: 1.3;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

    .agenda-location .location-icon {
        color: var(--agenda-primary);
        font-size: 1rem;
        margin-top: 0.1rem;
        flex-shrink: 0;
    }

/* Event Description */
.agenda-description {
    color: var(--agenda-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

    .agenda-description strong {
        color: var(--agenda-dark);
        font-weight: 600;
    }

    .agenda-description .time-info {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        color: var(--agenda-primary);
        font-weight: 500;
    }

        .agenda-description .time-info i {
            font-size: 0.9rem;
        }

    .agenda-description .event-details {
        background: var(--agenda-bg-light);
        padding: 0.8rem;
        border-radius: var(--agenda-radius-small);
        margin-top: 0.5rem;
        border-left: 3px solid var(--agenda-accent);
    }

/* Event Actions */
.event-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.event-action-btn {
    background: transparent;
    border: 1px solid var(--agenda-primary);
    color: var(--agenda-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--agenda-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

    .event-action-btn:hover {
        background: var(--agenda-primary);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(75, 46, 127, 0.3);
    }

    .event-action-btn i {
        font-size: 0.7rem;
    }

/* Priority Indicators */
.priority-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: priority-pulse 2s infinite;
}

    .priority-indicator.high {
        background: var(--agenda-error);
    }

    .priority-indicator.medium {
        background: var(--agenda-warning);
    }

    .priority-indicator.low {
        background: var(--agenda-success);
    }

@keyframes priority-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Event Categories */
.event-category {
    display: inline-block;
    background: var(--agenda-accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

    .event-category.concert {
        background: var(--agenda-primary);
    }

    .event-category.wedding {
        background: #FF69B4;
    }

    .event-category.corporate {
        background: var(--agenda-dark);
    }

    .event-category.festival {
        background: var(--agenda-warning);
    }

/* Empty State */
.agenda-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--agenda-light);
}

    .agenda-empty .empty-icon {
        font-size: 3.5rem;
        color: var(--agenda-border);
        margin-bottom: 1rem;
        opacity: 0.7;
    }

    .agenda-empty h5 {
        color: var(--agenda-dark);
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .agenda-empty p {
        color: var(--agenda-light);
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .agenda-empty .cta-button {
        background: var(--agenda-gradient);
        color: white;
        border: none;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--agenda-transition);
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
    }

        .agenda-empty .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(75, 46, 127, 0.4);
        }

/* Loading State */
.agenda-loading {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.agenda-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: var(--agenda-radius-small);
}

    .agenda-skeleton.date {
        height: 24px;
        width: 120px;
    }

    .agenda-skeleton.title {
        height: 20px;
        width: 80%;
        margin: 0.5rem 0;
    }

    .agenda-skeleton.description {
        height: 16px;
        width: 60%;
    }

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Timeline View (Alternative Layout) */
.agenda-timeline {
    position: relative;
    padding-left: 2rem;
}

    .agenda-timeline::before {
        content: '';
        position: absolute;
        left: 0.75rem;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--agenda-border);
    }

    .agenda-timeline .agenda-item {
        position: relative;
        margin-left: 0;
        margin-bottom: 2rem;
    }

        .agenda-timeline .agenda-item::before {
            display: none;
        }

        .agenda-timeline .agenda-item::after {
            content: '';
            position: absolute;
            left: -2.25rem;
            top: 1rem;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--agenda-primary);
            border: 3px solid white;
            box-shadow: 0 0 0 2px var(--agenda-primary);
        }

        .agenda-timeline .agenda-item.completed::after {
            background: var(--agenda-success);
            box-shadow: 0 0 0 2px var(--agenda-success);
        }

        .agenda-timeline .agenda-item.in-progress::after {
            background: var(--agenda-warning);
            box-shadow: 0 0 0 2px var(--agenda-warning);
            animation: timeline-pulse 2s infinite;
        }

@keyframes timeline-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Month View */
.agenda-month-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--agenda-border);
    border-radius: var(--agenda-radius-small);
    overflow: hidden;
    margin-bottom: 2rem;
}

.month-day {
    background: var(--agenda-white);
    padding: 0.8rem 0.5rem;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--agenda-transition);
}

    .month-day:hover {
        background: var(--agenda-bg-light);
    }

    .month-day.other-month {
        background: #f8f9fa;
        color: var(--agenda-light);
    }

    .month-day.today {
        background: var(--agenda-primary);
        color: white;
    }

    .month-day.has-events::after {
        content: '';
        position: absolute;
        bottom: 0.3rem;
        right: 0.3rem;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--agenda-accent);
    }

.month-day-number {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.month-day-events {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Week View */
.agenda-week-view {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    gap: 1px;
    background: var(--agenda-border);
    border-radius: var(--agenda-radius-small);
    overflow: hidden;
}

.week-hour {
    background: var(--agenda-bg-light);
    padding: 0.5rem;
    font-size: 0.8rem;
    color: var(--agenda-light);
    text-align: center;
    border-bottom: 1px solid var(--agenda-border);
}

.week-day-column {
    background: var(--agenda-white);
    position: relative;
    min-height: 40px;
}

.week-event {
    position: absolute;
    left: 2px;
    right: 2px;
    background: var(--agenda-primary);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    z-index: 1;
    cursor: pointer;
    transition: var(--agenda-transition);
}

    .week-event:hover {
        transform: scale(1.05);
        z-index: 2;
    }

/* Compact View */
.agenda-compact {
    padding: 1rem;
}

    .agenda-compact .agenda-item {
        padding: 1rem;
        margin-bottom: 0.5rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .agenda-compact .agenda-date {
        margin: 0;
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .agenda-compact .agenda-location {
        flex: 1;
        font-size: 1rem;
        margin: 0;
    }

    .agenda-compact .agenda-description {
        display: none;
    }

/* Filters */
.agenda-filters {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--agenda-border);
    flex-wrap: wrap;
}

.agenda-filter {
    background: transparent;
    border: 1px solid var(--agenda-border);
    color: var(--agenda-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--agenda-transition);
}

    .agenda-filter:hover,
    .agenda-filter.active {
        background: var(--agenda-primary);
        color: white;
        border-color: var(--agenda-primary);
    }

/* Statistics */
.agenda-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--agenda-border);
}

.agenda-stat {
    text-align: center;
}

.agenda-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--agenda-primary);
    display: block;
}

.agenda-stat-label {
    font-size: 0.8rem;
    color: var(--agenda-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Export Actions */
.agenda-export {
    padding: 1rem 2rem;
    border-top: 1px solid var(--agenda-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.agenda-export-label {
    font-size: 0.9rem;
    color: var(--agenda-dark);
    font-weight: 500;
}

.agenda-export-buttons {
    display: flex;
    gap: 0.5rem;
}

.agenda-export-btn {
    background: var(--agenda-white);
    border: 1px solid var(--agenda-border);
    color: var(--agenda-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--agenda-radius-small);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--agenda-transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

    .agenda-export-btn:hover {
        background: var(--agenda-primary);
        color: white;
        border-color: var(--agenda-primary);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .agenda-container {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        max-width: none;
    }

    .agenda-content {
        padding: 1.5rem;
        max-height: 300px;
    }

    .agenda-item {
        padding: 1.2rem;
    }

    .agenda-location {
        font-size: 1rem;
    }

    .agenda-description {
        font-size: 0.9rem;
    }

    .event-actions {
        justify-content: flex-start;
    }

    .agenda-month-view {
        font-size: 0.8rem;
    }

    .month-day {
        padding: 0.5rem 0.3rem;
        min-height: 50px;
    }

    .agenda-week-view {
        grid-template-columns: 40px repeat(7, 1fr);
    }

    .agenda-filters,
    .agenda-stats,
    .agenda-export {
        padding: 1rem;
    }

    .agenda-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .agenda-export {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .agenda-header {
        padding: 1.2rem 1.5rem;
    }

        .agenda-header h4 {
            font-size: 1.1rem;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
        }

        .agenda-header .event-counter {
            margin-left: 0;
            align-self: flex-start;
        }

    .agenda-content {
        padding: 1rem;
    }

    .agenda-item {
        padding: 1rem;
    }

    .agenda-date {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .agenda-location {
        font-size: 0.95rem;
    }

    .agenda-stats {
        grid-template-columns: 1fr;
    }

    .agenda-export-buttons {
        width: 100%;
        justify-content: center;
    }

    .agenda-compact .agenda-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .agenda-compact .agenda-description {
        display: block;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --agenda-white: #1E293B;
        --agenda-bg-light: #334155;
        --agenda-border: #475569;
        --agenda-dark: #F1F5F9;
        --agenda-light: #94A3B8;
    }

    .agenda-skeleton {
        background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
        background-size: 200% 100%;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .agenda-container {
        border: 2px solid var(--agenda-dark);
    }

    .agenda-item {
        border: 2px solid var(--agenda-primary);
    }

    .agenda-date {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Print Styles */
@media print {
    .agenda-container {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .agenda-header {
        background: #f5f5f5 !important;
        color: #333 !important;
    }

    .event-actions,
    .agenda-filters,
    .agenda-export {
        display: none;
    }

    .agenda-item {
        break-inside: avoid;
        margin-bottom: 1rem;
    }

    .agenda-date {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
}

/* Animation Preferences */
@media (prefers-reduced-motion: reduce) {
    .agenda-container,
    .agenda-item,
    .agenda-date,
    .event-action-btn,
    .agenda-export-btn {
        transition: none;
    }

        .agenda-item:hover {
            transform: none;
        }


        /* Focus Management for Accessibility */
        .agenda-item:focus-within {
            outline: 2px solid var(--agenda-primary);
            outline-offset: 2px;
        }

        .event-action-btn:focus,
        .agenda-filter:focus,
        .agenda-export-btn:focus {
            outline: 2px solid var(--agenda-primary);
            outline-offset: 2px;
        }
}
