/* ========================================
   TalkFood Backoffice - Global Styles
   Paleta Laranja/Amarelo (Food Delivery)
   Versão 2.0 - 2025
   ======================================== */

:root {
    /* Primary Colors - Laranja vibrante (desperta apetite) */
    --tf-primary: #FF6B35;
    --tf-primary-dark: #E85A28;
    --tf-primary-light: #FF8E5A;

    /* Secondary Colors - Amarelo energia */
    --tf-secondary: #FFB800;
    --tf-secondary-dark: #E6A600;
    --tf-secondary-light: #FFD54F;

    /* Accent - Verde saúde */
    --tf-accent: #21BF06;

    /* Neutral Colors */
    --tf-bg: #F8F9FA;
    --tf-bg-dark: #F5F5F5;
    --tf-surface: #FFFFFF;
    --tf-text-primary: #212529;
    --tf-text-secondary: #6C7293;
    --tf-divider: #DEE2E6;

    /* Status Colors */
    --tf-success: #21BF06;
    --tf-info: #3B86D1;
    --tf-warning: #FFB800;
    --tf-error: #E85A28;

    /* Shadows */
    --tf-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --tf-shadow-md: 0 4px 8px rgba(0,0,0,0.08);
    --tf-shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    --tf-shadow-xl: 0 12px 24px rgba(0,0,0,0.12);

    /* Border Radius */
    --tf-radius-sm: 4px;
    --tf-radius-md: 8px;
    --tf-radius-lg: 12px;
    --tf-radius-xl: 16px;
    --tf-radius-full: 9999px;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html, body, app {
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mud layout fixes */
.mud-container, .mud-main-content {
    overflow-x: hidden;
}

.mud-drawer {
    max-width: 100vw;
}

/* Kanban Board Styles */
.kanban-column {
    min-width: 280px;
    width: 280px;
}

@media (max-width: 1400px) {
    .kanban-column {
        min-width: 240px;
        width: 240px;
    }
}

@media (max-width: 768px) {
    .kanban-column {
        min-width: 100%;
        width: 100%;
    }
}

/* Animations */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* MudBlazor Navigation Overrides */
.mud-nav-item.active {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.15) 0%, transparent 100%) !important;
    border-left: 3px solid var(--tf-primary) !important;
    font-weight: 600 !important;
}

.mud-nav-link:hover {
    background: rgba(255, 107, 53, 0.08) !important;
}

/* Top navigation items (AppBar) */
.top-nav-item {
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.15s ease-in-out, border-bottom-color 0.15s;
}

.top-nav-item:hover {
    opacity: 1;
}

.top-nav-item.mud-nav-link.active {
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
}

/* Utility Classes */
.tf-gradient-primary {
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-secondary) 100%);
}

.tf-gradient-success {
    background: linear-gradient(135deg, var(--tf-accent) 0%, #4CAF50 100%);
}

.tf-shadow-primary {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.tf-text-gradient {
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tf-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--tf-text-secondary);
    border-radius: var(--tf-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tf-primary);
}

/* Print Styles */
@media print {
    .mud-appbar,
    .mud-drawer,
    .mud-fab {
        display: none !important;
    }
}
