@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

/* ========================================
   ORGANIZER DASHBOARD - TWD MYBOOKINGS EXTENSION
   ======================================== */

/* Base styles inherited from twd-my-bookings.css */
/* This file extends those styles for organizer-specific elements */

/* Header & Subtitle */
.twd-mybookings__header {
    margin-bottom: 16px;
}

.twd-mybookings__subtitle {
    font-size: 13px;
    color: rgb(74, 93, 74);
    margin-top: 4px;
    font-weight: 600;
}

/* ========================================
   COLLAPSIBLE EVENT CARDS
   ======================================== */

/* Event Header (Clickable) */
.twd-mybookings__item--collapsible {
    cursor: pointer;
    transition: all 0.2s ease;
    flex-direction: row !important;
    /* Keep row for header layout */
    flex-wrap: wrap !important;
    /* CRITICAL: Allow dashboard to wrap to next line */
}

.twd-mybookings__event-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex: 1 1 100%;
    /* Ensure header takes full width */
}

.twd-mybookings__event-name {
    font-size: 14px;
    font-weight: 900;
    color: rgb(26, 47, 26);
}

.twd-mybookings__expand-icon {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.twd-mybookings__expand-icon i {
    width: 20px;
    height: 20px;
    color: rgb(74, 93, 74);
}

.twd-mybookings__item--expanded .twd-mybookings__expand-icon {
    transform: rotate(180deg);
}

/* Event Dashboard (Expanded Content) */
.twd-mybookings__event-dashboard {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(26, 47, 26, 0.08);
    animation: slideDown 0.3s ease-out;
    flex: 0 0 100% !important;
    /* CRITICAL: Force full width on new line */
    width: 100%;
    order: 2;
    /* Ensure it appears after header */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.twd-mybookings__dashboard-header {
    margin-bottom: 16px;
}

.twd-mybookings__dashboard-title {
    font-size: 16px;
    font-weight: 900;
    color: rgb(26, 47, 26);
    margin: 0 0 4px 0;
}

.twd-mybookings__dashboard-subtitle {
    font-size: 12px;
    color: rgb(74, 93, 74);
    font-weight: 600;
    margin: 0;
}

.twd-mybookings__participants-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Organizer-specific item modifications */
.twd-mybookings__item--organizer {
    flex-direction: column;
    gap: 0;
}

/* Participant Header */
.twd-mybookings__participant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.twd-mybookings__participant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Participant Name */
.twd-mybookings__participant-name {
    font-size: 14px;
    font-weight: 900;
    color: #1a2f1a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Organizer Badge */
.twd-mybookings__organizer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a2f1a;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    border: 1px solid #ffd700;
}

.twd-mybookings__participant-if {
    font-size: 11px;
    font-weight: 600;
    color: rgb(74, 93, 74);
    font-style: italic;
}

/* Presence Button */
.twd-mybookings__presence-btn {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s ease;
}

.twd-mybookings__presence-btn--present {
    background: #16a34a;
    border-color: #16a34a;
    color: white;
}

.twd-mybookings__presence-btn--present:hover {
    background: #15803d;
    border-color: #15803d;
}

.twd-mybookings__presence-btn--absent {
    background: white;
    border-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.twd-mybookings__presence-btn--absent:hover {
    background: rgba(220, 38, 38, 0.05);
}

/* Participant Details (shown when present) */
.twd-mybookings__participant-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(26, 47, 26, 0.08);
}

/* Rating Section */
.twd-mybookings__rating-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.twd-mybookings__rating-label {
    font-size: 11px;
    font-weight: 900;
    color: rgb(74, 93, 74);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.twd-mybookings__stars {
    display: flex;
    gap: 4px;
}

.twd-mybookings__star {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #d1d5db;
    fill: transparent;
}

.twd-mybookings__star:hover {
    transform: scale(1.1);
}

.twd-mybookings__star--filled {
    fill: #f59e0b;
    color: #f59e0b;
}

/* Comment Section */
.twd-mybookings__comment-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.twd-mybookings__comment-toggle {
    text-align: left;
    font-size: 11px;
    font-weight: 900;
    color: #376439;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.twd-mybookings__comment-toggle:hover {
    opacity: 0.7;
}

.twd-mybookings__comment-icon {
    width: 14px;
    height: 14px;
}

.twd-mybookings__comment-textarea {
    width: 100%;
    background: rgba(26, 47, 26, 0.03);
    border: 1px solid rgba(26, 47, 26, 0.1);
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    color: rgb(26, 47, 26);
    resize: none;
    height: 64px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.twd-mybookings__comment-textarea:focus {
    outline: none;
    border-color: #376439;
    background: white;
}

/* Actions Container */
.twd-mybookings__actions {
    margin-top: 16px;
}

/* Save Button */
.twd-mybookings__actions {
    margin-top: 16px;
    margin-bottom: 100px;
    /* Space for fixed navbar */
}

.twd-mybookings__save-btn {
    width: 100%;
    background: #376439;
    color: white;
    font-weight: 900;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.twd-mybookings__save-btn:hover {
    background: #2d5030;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.twd-mybookings__save-btn:active {
    transform: scale(0.98);
}

.twd-mybookings__save-icon {
    width: 16px;
    height: 16px;
}

/* Toast Notification */
.twd-mybookings__toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(26, 47, 26);
    color: white;
    font-size: 13px;
    font-weight: 900;
    padding: 12px 24px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 300;
    display: none;
    /* Hidden by default */
    animation: slideInFromTop 0.3s ease-out;
}

.twd-mybookings__toast.hidden {
    display: none !important;
}

.twd-mybookings__toast:not(.hidden) {
    display: block;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Fade-in animation for details */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy IF badge styles (kept for compatibility) */
.if-badge-high {
    color: #16a34a;
    background-color: #f0fdf4;
    border-color: #dcfce7;
}

.if-badge-med {
    color: #ca8a04;
    background-color: #fefce8;
    border-color: #fef08a;
}

.if-badge-low {
    color: #dc2626;
    background-color: #fef2f2;
    border-color: #fee2e2;
}