/* Event Form Plugin - Modern Dashboard Styles */

/* CSS Variables */
:root {
    /* Primary Color Scale */
    --primary: #67CDF6;
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;

    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Status Colors */
    --success: #4CAF50;
    --success-50: #f0fdf4;
    --success-200: #bbf7d0;
    --success-600: #16a34a;
    
    --warning: #FFC107;
    --warning-50: #fffbeb;
    --warning-200: #fed7aa;
    --warning-600: #d97706;
    
    --danger: #F44336;
    --danger-50: #fef2f2;
    --danger-200: #fecaca;
    --danger-600: #dc2626;

    /* Background Colors */
    --bg: #f8fafc;
    --surface: #ffffff;
    --muted: #f1f5f9;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Breakpoints */
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
}

/* Critical Dashboard Styles */
#efp-dashboard.efp-dashboard {
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    min-height: 100vh !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: #FFFFFF !important;
    position: relative;
}

/* Sidebar Styles */
#efp-dashboard .efp-sidebar {
    background: #FFFFFF !important;
    border-right: 1px solid #E5E7EB !important;
    padding: 24px !important;
    overflow-y: auto;
}

/* Section Headers */
#efp-dashboard .efp-sidebar h3 {
    font-size: 0.75rem !important;
    margin: 20px 0 8px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #E5E7EB !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 600 !important;
    color: #001C3B !important;
}

#efp-dashboard .efp-sidebar h3:first-child {
    margin-top: 0 !important;
}

/* Sidebar Buttons */
#efp-dashboard .efp-sidebar button {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    color: #374151 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: left !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    background: transparent !important;
    position: relative !important;
    min-height: 44px !important;
}

#efp-dashboard .efp-sidebar button:hover,
#efp-dashboard .efp-sidebar button:focus {
    background: #F3F4F6 !important;
    color: #111827 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

#efp-dashboard .efp-sidebar button.active {
    background: #F0F4F8 !important;
    color: #001C3B !important;
    border-left: 3px solid #001C3B !important;
    padding-left: 13px !important;
}

/* Button Color Classes */
#efp-dashboard .efp-sidebar button.blue { 
    border-left: 3px solid #001C3B !important;
}

#efp-dashboard .efp-sidebar button.green { 
    border-left: 3px solid #4CAF50 !important;
}

#efp-dashboard .efp-sidebar button.orange { 
    border-left: 3px solid #FFC107 !important;
}

#efp-dashboard .efp-sidebar button.purple { 
    border-left: 3px solid #8B5CF6 !important;
}

/* Content Area */
#efp-dashboard .efp-content {
    padding: 32px !important;
    background: #F8FAFC !important;
    overflow-y: auto;
    position: relative;
}

/* Hidden sections */
#efp-dashboard .efp-hidden {
    display: none !important;
}

/* Form Elements */
#efp-dashboard input, 
#efp-dashboard select, 
#efp-dashboard textarea {
    display: block !important;
    width: 100% !important;
    padding: 12px !important;
    margin-bottom: 16px !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 8px !important;
    background-color: #FFFFFF !important;
    font-size: 0.875rem !important;
    transition: all 0.15s ease !important;
    min-height: 44px !important;
}

#efp-dashboard input:focus,
#efp-dashboard select:focus,
#efp-dashboard textarea:focus {
    border-color: #001C3B !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 28, 59, 0.1) !important;
}

#efp-dashboard label {
    display: block !important;
    margin-bottom: 4px !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
}

#efp-dashboard button,
#efp-dashboard input[type="submit"] {
    background-color: #001C3B !important;
    color: white !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    font-size: 0.875rem !important;
}

#efp-dashboard button:hover,
#efp-dashboard input[type="submit"]:hover {
    background-color: #002A5C !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Welcome Message Styles */
#efp-dashboard .efp-welcome-box {
    background: #FFFFFF !important;
    border-radius: 16px !important;
    padding: 32px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

#efp-dashboard .efp-welcome-box h2 {
    color: #001C3B !important;
    margin-top: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #E5E7EB !important;
}

#efp-dashboard .efp-welcome-box p {
    color: #6B7280 !important;
    margin: 0 0 24px 0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Toast Component */
.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: var(--surface, #ffffff);
    border: 1px solid var(--gray-200, #e5e7eb);
    max-width: 400px;
    margin: 0 auto 16px;
}

.toast--success {
    background: var(--success-50, #f0fdf4);
    border-color: var(--success-200, #bbf7d0);
}

.toast--success .toast__icon {
    color: var(--success-600, #16a34a);
}

.toast--warning {
    background: var(--warning-50, #fffbeb);
    border-color: var(--warning-200, #fed7aa);
}

.toast--warning .toast__icon {
    color: var(--warning-600, #d97706);
}

.toast--danger {
    background: var(--danger-50, #fef2f2);
    border-color: var(--danger-200, #fecaca);
}

.toast--danger .toast__icon {
    color: var(--danger-600, #dc2626);
}

.toast--info {
    background: var(--primary-50, #f0f9ff);
    border-color: var(--primary-200, #bae6fd);
}

.toast--info .toast__icon {
    color: var(--primary-600, #0284c7);
}

.toast__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.toast__icon .icon {
    width: 100%;
    height: 100%;
}

.toast__content {
    flex: 1;
    min-width: 0;
}

.toast__title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900, #111827);
    line-height: 1.4;
}

.toast__message {
    margin: 0;
    font-size: 13px;
    color: var(--gray-700, #374151);
    line-height: 1.4;
}

/* Toast Stack */
.toast-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #efp-dashboard.efp-dashboard {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    
    #efp-dashboard .efp-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transition: left 0.3s ease !important;
        padding-top: 60px !important;
    }
    
    #efp-dashboard .efp-sidebar.active {
        left: 0 !important;
    }
    
    #efp-dashboard .efp-content {
        padding: 16px !important;
    }
    
    #efp-dashboard .efp-menu-toggle {
        display: block !important;
        position: absolute !important;
        top: 16px !important;
        left: 16px !important;
        z-index: 1001 !important;
        background: #001C3B !important;
        color: white !important;
        border: none !important;
        padding: 12px !important;
        border-radius: 8px !important;
        cursor: pointer !important;
    }
}
