/* =============================================
   Mes Événements - Styles
   ============================================= */

body {
    background-color: #f5f5f5;
}

.events-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.events-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.events-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.events-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

.header-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-box {
    background: rgba(255,255,255,0.2);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Actions rapides */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 200px;
    padding: 1.5rem;
    background: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.action-btn i {
    font-size: 2rem;
}

.action-btn.create {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.action-btn.discover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.action-btn.calendar {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

/* Types d'événements */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.type-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid transparent;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.type-card.active {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.type-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1rem;
}

.type-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.type-count {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Onglets de filtrage */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-tab {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    text-decoration: none;
    color: #374151;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    background: #e5e7eb;
    text-decoration: none;
    color: #374151;
}

.filter-tab.active {
    background: #667eea;
    color: white;
}

.filter-tab.active:hover {
    color: white;
}

/* Section de contenu */
.content-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn:hover {
    background: #e5e7eb;
}

.view-btn.active {
    background: #667eea;
    color: white;
}

/* Grille d'événements */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.events-list {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.events-list.active {
    display: flex;
}

.events-grid.active {
    display: grid;
}

/* Carte événement */
.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.event-banner {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
}

.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    backdrop-filter: blur(10px);
}

.event-badge.registered {
    background: rgba(16, 185, 129, 0.9);
}

.event-badge.full {
    background: rgba(239, 68, 68, 0.9);
}

.event-badge.online {
    background: rgba(139, 92, 246, 0.9);
}

.event-badge.owner {
    background: rgba(59, 130, 246, 0.9);
}

.event-date-box {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-width: 55px;
}

.event-day {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    line-height: 1;
}

.event-month {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.event-location {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #9ca3af;
    flex-wrap: wrap;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-footer {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.event-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.event-btn.primary {
    background: #667eea;
    color: white;
}

.event-btn.primary:hover {
    background: #5568d3;
}

.event-btn.success {
    background: #10b981;
    color: white;
}

.event-btn.success:hover {
    background: #059669;
}

.event-btn.danger {
    background: #ef4444;
    color: white;
}

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

.event-btn.secondary {
    background: #f3f4f6;
    color: #1f2937;
}

.event-btn.secondary:hover {
    background: #e5e7eb;
}

.event-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.empty-state-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.empty-state-btn:hover {
    transform: scale(1.05);
}

/* Bouton flottant */
.btn-create-event {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
}

.btn-create-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Modal de création */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.modal-box {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: #1f2937;
}

.modal-body {
    padding: 2rem;
}

.modal-body .form-group {
    margin-bottom: 1.25rem;
}

.modal-body .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.95rem;
}

.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.modal-body .form-row {
    display: flex;
    gap: 1rem;
}

.modal-body .form-row .form-group {
    flex: 1;
}

.modal-body .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body .form-check input[type="checkbox"] {
    width: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-btn.primary:hover {
    opacity: 0.9;
}

.modal-btn.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-btn.cancel {
    background: #f3f4f6;
    color: #374151;
}

.modal-btn.cancel:hover {
    background: #e5e7eb;
}

/* Toast notification */
.toast-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    background: #10b981;
}

.toast-notification.error {
    background: #ef4444;
}

/* Vue liste */
.event-card-list {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.event-card-list:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.event-card-list .event-banner {
    width: 200px;
    min-height: 150px;
    height: auto;
    flex-shrink: 0;
}

.event-card-list .event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .events-header h1 {
        font-size: 1.75rem;
    }

    .header-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .quick-actions {
        flex-direction: column;
    }

    .action-btn {
        min-width: 100%;
    }

    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .filter-tabs {
        flex-direction: column;
    }

    .modal-body .form-row {
        flex-direction: column;
        gap: 0;
    }

    .event-card-list {
        flex-direction: column;
    }

    .event-card-list .event-banner {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .types-grid {
        grid-template-columns: 1fr;
    }

    .events-container {
        padding: 1rem 0.5rem;
    }
}

/* =============================================
   Calendar View Styles
   ============================================= */

/* --- Controls --- */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-sub-tabs {
    display: flex;
    gap: 0.5rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 8px;
}

.cal-sub-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.cal-sub-tab:hover {
    color: #374151;
    background: #e5e7eb;
}

.cal-sub-tab.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cal-nav-btn {
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

.cal-nav-btn:hover {
    background: #e5e7eb;
}

.cal-today-btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: #667eea;
}

.cal-today-btn:hover {
    background: #eef0ff;
}

.cal-nav-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    min-width: 200px;
    text-align: center;
}

/* --- Monthly View --- */
.cal-month-grid {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.cal-month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cal-day-name {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 0.85rem;
}

.cal-month-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-day-cell {
    min-height: 100px;
    border-right: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    padding: 0.5rem;
    background: white;
    transition: background 0.15s;
    cursor: default;
}

.cal-day-cell:nth-child(7n) {
    border-right: none;
}

.cal-day-cell.cal-day-has-events {
    cursor: pointer;
}

.cal-day-cell.cal-day-has-events:hover {
    background: #f8f9ff;
}

.cal-day-cell.cal-day-outside {
    background: #fafafa;
    opacity: 0.4;
}

.cal-day-cell.cal-day-today {
    background: #eef0ff;
}

.cal-day-cell.cal-day-today .cal-day-number {
    background: #667eea;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-day-number {
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.cal-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-event-pill {
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.cal-event-more {
    font-size: 0.7rem;
    color: #667eea;
    font-weight: 500;
    padding: 1px 4px;
}

/* --- Weekly View --- */
.cal-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.cal-week-day {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    min-height: 200px;
}

.cal-week-day.cal-day-today {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.cal-week-day-header {
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cal-week-day-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
}

.cal-week-day-num {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.cal-week-day-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cal-week-empty {
    color: #d1d5db;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
    font-style: italic;
}

.cal-week-event {
    padding: 0.5rem;
    background: #fafbff;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.cal-week-event:hover {
    background: #eef0ff;
}

.cal-week-event-time {
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.cal-week-event-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1f2937;
    margin-bottom: 0.15rem;
}

.cal-week-event-loc {
    font-size: 0.75rem;
    color: #9ca3af;
}

.cal-week-badge {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.cal-week-badge.registered {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.cal-week-badge.full {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* --- Annual View --- */
.cal-year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cal-year-month {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    overflow: hidden;
}

.cal-year-month-title {
    text-align: center;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.15s;
}

.cal-year-month-title:hover {
    color: #764ba2;
}

.cal-year-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.25rem;
}

.cal-year-dow span {
    font-size: 0.65rem;
    color: #9ca3af;
    font-weight: 500;
}

.cal-year-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.cal-year-day {
    font-size: 0.7rem;
    padding: 2px 0;
    color: #6b7280;
    border-radius: 3px;
    line-height: 1.6;
    position: relative;
}

.cal-year-day.empty {
    visibility: hidden;
}

.cal-year-day.today {
    background: #667eea;
    color: white;
    font-weight: bold;
}

.cal-year-day.has-events {
    font-weight: bold;
    color: #1f2937;
    cursor: default;
}

.cal-year-day.has-events::after {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dot-color, #667eea);
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Day Detail Panel --- */
.calendar-day-detail {
    margin-top: 1.5rem;
    background: #fafbff;
    border: 1px solid #e0e4f0;
    border-radius: 10px;
    padding: 1.5rem;
}

.cal-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.cal-detail-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cal-detail-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
}

.cal-detail-close:hover {
    color: #ef4444;
}

.cal-detail-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cal-detail-event {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.cal-detail-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cal-detail-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.75rem;
    border-radius: 15px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.cal-detail-time {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
}

.cal-detail-event-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2937;
    margin-bottom: 0.4rem;
}

.cal-detail-event-loc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cal-detail-event-desc {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.cal-detail-event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.cal-free-badge {
    color: #10b981;
    font-weight: 600;
}

.cal-detail-event-actions {
    display: flex;
    gap: 0.5rem;
}

/* --- Registered Event Highlights (all views) --- */

/* Monthly: pill glow + ring */
.cal-event-pill.registered {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5), 0 0 8px rgba(16, 185, 129, 0.3);
    position: relative;
}

.cal-event-pill.registered::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.55rem;
    margin-right: 3px;
}

/* Weekly: card highlight */
.cal-week-event.registered {
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4), 0 2px 8px rgba(16, 185, 129, 0.15);
}

.cal-week-event.registered:hover {
    background: rgba(16, 185, 129, 0.14);
}

/* Annual: day with registered event */
.cal-year-day.has-registered {
    background: rgba(16, 185, 129, 0.15);
    font-weight: bold;
    color: #059669;
}

.cal-year-day.has-registered::after {
    background: #10b981 !important;
    width: 6px;
    height: 6px;
}

/* Day detail: card highlight */
.cal-detail-event.registered {
    background: rgba(16, 185, 129, 0.06);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35), 0 1px 4px rgba(0,0,0,0.08);
}

/* --- Calendar Responsive --- */
@media (max-width: 1024px) {
    .cal-year-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .calendar-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-sub-tabs {
        justify-content: center;
    }

    .calendar-nav {
        justify-content: center;
    }

    .cal-nav-label {
        min-width: 150px;
    }

    .cal-day-cell {
        min-height: 70px;
        padding: 0.3rem;
    }

    .cal-event-pill {
        font-size: 0.6rem;
    }

    .cal-week-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .cal-week-day {
        min-height: auto;
    }

    .cal-year-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .cal-year-grid {
        grid-template-columns: 1fr;
    }

    .cal-month-header,
    .cal-month-body {
        min-width: 500px;
    }

    .cal-month-grid {
        overflow-x: auto;
    }
}
