/**
 * Dashboard & Booking Components
 * Extracted shared patterns for organizer dashboards and booking flows
 * Nordic Blue Theme - No Gradients, Flat Design Only
 */

/* ============================================================================
   DASHBOARD CARDS
   ============================================================================ */

.dashboard-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-stat-icon {
    flex-shrink: 0;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.dashboard-stat-icon.primary {
    background: #DBEAFE;
}

.dashboard-stat-icon.success {
    background: #D1FAE5;
}

.dashboard-stat-icon.warning {
    background: #FEF3C7;
}

.dashboard-stat-icon.info {
    background: #E0E7FF;
}

/* ============================================================================
   WIZARD & MULTI-STEP FORMS
   ============================================================================ */

.wizard-container {
    background: #E0F2FE;
    min-height: 100vh;
}

.wizard-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Step Indicators */
.step-indicator {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: #2563EB;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-indicator.completed {
    background: #10B981;
    color: white;
}

.step-indicator.pending {
    background: #E5E7EB;
    color: #6B7280;
}

/* Progress Bar */
.wizard-progress-bar {
    height: 0.25rem;
    background: #E5E7EB;
    border-radius: 0.125rem;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    background: #2563EB;
    transition: width 0.3s ease;
}

/* ============================================================================
   FORM SECTIONS
   ============================================================================ */

.form-section {
    animation: fadeIn 0.3s ease-in;
}

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

.field-group {
    background: #F9FAFB;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.field-group-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================================================
   BOOKING FLOW
   ============================================================================ */

.booking-summary {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 1rem;
}

.booking-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.booking-step {
    display: flex;
    align-items: center;
    flex: 1;
}

.booking-step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.booking-step-number.active {
    background: #2563EB;
    color: white;
}

.booking-step-number.completed {
    background: #10B981;
    color: white;
}

.booking-step-number.pending {
    background: #E5E7EB;
    color: #6B7280;
}

.booking-step-line {
    flex: 1;
    height: 0.125rem;
    background: #E5E7EB;
    margin: 0 1rem;
}

.booking-step-line.completed {
    background: #2563EB;
}

/* ============================================================================
   ANALYTICS WIDGETS
   ============================================================================ */

.analytics-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.analytics-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.analytics-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.analytics-metric-label {
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
}

.analytics-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.analytics-trend.up {
    background: #D1FAE5;
    color: #059669;
}

.analytics-trend.down {
    background: #FEE2E2;
    color: #DC2626;
}

/* ============================================================================
   TABLES & DATA DISPLAY
   ============================================================================ */

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table thead {
    background: #F9FAFB;
}

.dashboard-table th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.dashboard-table tr:hover {
    background: #F9FAFB;
}

/* ============================================================================
   STATUS BADGES
   ============================================================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.published {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.draft {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.confirmed {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

.status-badge.primary {
    background: #DBEAFE;
    color: #1E40AF;
}

/* ============================================================================
   ACTION BUTTONS
   ============================================================================ */

.action-button-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-button {
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.action-button:hover {
    background: #F3F4F6;
}

.action-button.primary:hover {
    color: #2563EB;
}

.action-button.success:hover {
    color: #059669;
}

.action-button.warning:hover {
    color: #D97706;
}

.action-button.danger:hover {
    color: #DC2626;
}

/* ============================================================================
   VIP/PREMIUM ELEMENTS (Nordic Blue Theme)
   ============================================================================ */

.vip-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: #2563EB;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vip-card {
    background: white;
    border: 2px solid #2563EB;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.vip-banner {
    background: #2563EB;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
}

.vip-icon-wrapper {
    background: #2563EB;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   PREVIEW SECTIONS
   ============================================================================ */

.preview-section {
    background: #F3F4F6;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.preview-section h4 {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
}

/* ============================================================================
   TOOLTIPS & HELP TEXT
   ============================================================================ */

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #1F2937;
    color: white;
    text-align: center;
    border-radius: 0.375rem;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    font-size: 0.75rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
}

.help-text {
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* ============================================================================
   NOTIFICATIONS & ALERTS
   ============================================================================ */

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert.info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.alert.success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.alert.warning {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
}

.alert.error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

/* ============================================================================
   LOADING STATES
   ============================================================================ */

.loading-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #E5E7EB;
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.skeleton {
    background: #E5E7EB;
    border-radius: 0.25rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */

@media (max-width: 768px) {
    .wizard-card {
        padding: 1rem;
    }

    .field-group {
        padding: 1rem;
    }

    .dashboard-stat-card {
        padding: 1rem;
    }

    .booking-summary {
        position: static;
    }
}
