/* Modern Filament v4 Theme - Blue Light Theme */

:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --primary-950: #172554;
}

/* Sticky Header */
.filament-main-header {
    position: sticky !important;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styling */
.filament-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.filament-sidebar-nav {
    padding: 1rem 0;
}

/* Navigation Items */
.filament-sidebar-nav-item {
    margin: 0.25rem 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
}

.filament-sidebar-nav-item:hover {
    background: rgba(59, 130, 246, 0.08);
    transform: translateX(2px);
}

.filament-sidebar-nav-item-active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filament-sidebar-nav-item-active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateX(2px);
}

/* Navigation Icons */
.filament-sidebar-nav-item-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    color: #6b7280;
    transition: color 0.2s ease-in-out;
}

.filament-sidebar-nav-item-active .filament-sidebar-nav-item-icon {
    color: white;
}

/* Custom Header Actions */
.custom-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Language Switcher */
.language-switcher {
    margin-right: 1rem;
}

.language-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-select option {
    background: #1f2937;
    color: white;
}

.notification-bell {
    position: relative;
}

.notification-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: none;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.notification-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Admin Profile */
.admin-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.2s ease-in-out;
}

.admin-profile:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.admin-avatar img {
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.admin-info {
    display: flex;
    flex-direction: column;
}

.admin-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.admin-role {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Sidebar Collapse Button */
.filament-sidebar-collapse-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filament-sidebar-collapse-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Cards and Content */
.filament-page {
    background: #f8fafc;
    min-height: 100vh;
}

.filament-page-header {
    background: white;
    border-radius: 1rem;
    margin: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Tables */
.filament-table {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

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

/* Forms */
.filament-form {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Buttons */
.filament-button-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filament-button-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Widgets */
.filament-widget {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.2s ease-in-out;
}

.filament-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-header-actions {
        gap: 0.5rem;
    }

    .admin-profile {
        padding: 0.25rem;
    }

    .admin-info {
        display: none;
    }
}

/* Form Layout Improvements */
.filament-forms-field-wrapper {
    margin-bottom: 1.5rem;
}

.filament-forms-field-wrapper .space-y-4 {
    gap: 1rem;
}

/* Icon Picker Improvements */
.icon-picker-grid {
    max-height: 200px;
    overflow-y: auto;
}

.icon-picker-item {
    transition: all 0.15s ease;
}

.icon-picker-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Multi-language Input Improvements */
.multi-lang-input {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.multi-lang-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Character Counter */
.character-counter {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

/* JSON Preview */
.json-preview {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Form Section Headers */
.form-section-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .multi-lang-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .icon-picker-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .multi-lang-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .icon-picker-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 1025px) {
    .multi-lang-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .icon-picker-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .filament-main-header {
        background: rgba(17, 24, 39, 0.95);
        border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    }

    .filament-sidebar {
        background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
        border-right: 1px solid rgba(59, 130, 246, 0.2);
    }

    .filament-page {
        background: #111827;
    }

    .filament-page-header,
    .filament-table,
    .filament-form,
    .filament-widget {
        background: #1f2937;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
}
