/**
 * Band Dashboard Improvements CSS
 * Modern, clean styling for the new tabbed interface
 */

/* Dashboard Modal Enhancements */
.dashboard-modal {
    max-width: 900px !important;
    max-height: 90vh;
    overflow-y: auto;
}

/* Status Dashboard */
.status-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.1);
}

.status-icon {
    font-size: 2rem;
    line-height: 1;
}

.status-info strong {
    display: block;
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.status-info small {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Status variants */
.status-approved .status-icon { color: #10b981; }
.status-pending .status-icon { color: #f59e0b; }
.status-rejected .status-icon { color: #ef4444; }
.status-premium .status-icon { color: #fbbf24; }
.status-free .status-icon { color: #38bdf8; }
.status-events .status-icon { color: #8b5cf6; }

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
    padding-bottom: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
}

.tab-btn:hover {
    color: #cbd5e1;
    background: rgba(56, 189, 248, 0.05);
}

.tab-btn.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

.tab-btn:focus {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-label {
    font-weight: 600;
}

/* Premium Lock Icon on Tab */
.premium-lock-icon {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 0.25rem;
}

.tab-btn.active .premium-lock-icon {
    opacity: 1;
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
.profile-section,
.events-section,
.analytics-section,
.subscription-section {
    padding: 1rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: #38bdf8;
    margin: 0;
    font-size: 1.5rem;
}

.section-description {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.help-icon {
    color: #64748b;
    cursor: help;
    font-size: 1.2rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.help-text {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    color: #38bdf8;
    transform: scale(1.1);
}

.btn-loading {
    display: none;
}

/* Premium Upsell Banner */
.premium-banner {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: none;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.premium-icon {
    font-size: 2.5rem;
}

.banner-text {
    flex: 1;
    min-width: 200px;
}

.banner-text strong {
    display: block;
    color: #38bdf8;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.banner-text p {
    color: #94a3b8;
    margin: 0;
}

.upgrade-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Premium Badge Display */
.premium-badge-display {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: none;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    font-size: 2rem;
}

.premium-badge-display strong {
    color: #fbbf24;
    font-size: 1.1rem;
}

.premium-badge-display small {
    display: block;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Events Section */
.events-count {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.count-badge {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.manual-events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateX(4px);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.event-card-title {
    flex: 1;
}

.event-card-title strong {
    display: block;
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.event-date {
    color: #38bdf8;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-card-actions {
    display: flex;
    gap: 0.5rem;
}

.event-card-location {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Premium Lock Overlay */
.premium-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.lock-content {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
    position: relative;
}

.close-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #94a3b8;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
}

.close-overlay:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.lock-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.lock-content h3 {
    color: #38bdf8;
    margin-bottom: 0.5rem;
}

.lock-content p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Analytics Section */
.analytics-time-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.time-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-btn:hover {
    background: rgba(56, 189, 248, 0.1);
}

.time-btn.active {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: white;
    border-color: #38bdf8;
}

.analytics-loading {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
}

.spinner {
    border: 3px solid rgba(56, 189, 248, 0.1);
    border-top: 3px solid #38bdf8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.metric-icon {
    font-size: 1.5rem;
}

.metric-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-trend {
    font-size: 0.85rem;
    color: #94a3b8;
}

.metric-trend.positive {
    color: #10b981;
}

.metric-trend.negative {
    color: #ef4444;
}

.social-breakdown,
.geo-breakdown,
.top-events {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-breakdown h4,
.geo-breakdown h4,
.top-events h4 {
    margin-top: 0;
    color: #38bdf8;
}

/* Subscription Section */
.current-subscription-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.subscription-info h4 {
    margin: 0 0 0.5rem 0;
    color: #38bdf8;
}

.plan-name {
    margin: 0;
    color: #cbd5e1;
    font-size: 1.1rem;
    font-weight: 600;
}

.plan-details {
    margin: 0.5rem 0 0 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.premium-features-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.premium-features-card h4 {
    margin-top: 0;
    color: #38bdf8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.feature-check {
    color: #10b981;
    font-size: 1.2rem;
    font-weight: bold;
}

.feature-content strong {
    display: block;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
}

.feature-content p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.pricing-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    text-align: center;
}

.price-main {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.price-main strong {
    color: #38bdf8;
}

.price-special {
    color: #10b981;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
}

/* No Data States */
.no-data-state,
.no-events-state {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
}

.no-data-icon,
.no-events-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.no-data-title,
.no-events-title {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.no-data-description,
.no-events-description {
    color: #64748b;
    font-size: 0.9rem;
}

.loading-text,
.error-text,
.no-data-text {
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
}

.error-text {
    color: #ef4444;
}

/* Dashboard Actions */
.dashboard-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    justify-content: center;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-modal {
        margin: 2% auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .status-dashboard {
        grid-template-columns: 1fr;
    }
    
    .dashboard-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        padding: 1rem;
        border-bottom: 1px solid rgba(56, 189, 248, 0.2);
        border-left: 3px solid transparent;
        top: 0;
    }
    
    .tab-btn.active {
        border-bottom-color: rgba(56, 189, 248, 0.2);
        border-left-color: #38bdf8;
        background: rgba(56, 189, 248, 0.05);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .upgrade-btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .analytics-summary {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .current-subscription-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subscription-actions {
        width: 100%;
    }
    
    .subscription-actions button {
        width: 100%;
    }
}
