
/* DASHBOARD ARTE SINTONIA - GLOBAL STYLES & OVERRIDES */

/* Import base Font Inter & Material Symbols */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* Basic Resets & Scrollbar */
:root {
  --primary-color: #02ABF3; /* Azul / Ciano da Marca */
  --bg-table-header: #f8fafc;
  --bg-table-row-even: #fafbfc;
  --border-table: #e2e8f0;
  --text-table: #1e293b;
}

.dark {
  --primary-color: #666396; /* Roxo / Violeta da Marca */
  --bg-table-header: #313442;
  --bg-table-row-even: #2d303b;
  --border-table: #44475a;
  --text-table: #f8f8f2;
}

body { font-family: 'Inter', sans-serif; background-color: transparent; margin: 0; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Titulos principais de pagina/container em tom mais suave no tema claro */
h1.text-slate-900, h2.text-slate-900, h3.text-slate-900,
h1.text-slate-800, h2.text-slate-800, h3.text-slate-800,
h1, h2, h3 {
  color: #212121;
}

.dark h1,
.dark h2,
.dark h3 {
  color: inherit;
}

/* Material Symbols Rendering Fix */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Page Toggle Logic */
.page-section { display: none; }
.page-section.active { display: block; }
#page-logistica.active { display: flex !important; }

/* Tailwind Component Overrides */
.dashboard-header { background: none; box-shadow: none; border-radius: 0; margin-bottom: 0px; padding: 0; justify-content: start; align-items: start;}
.dashboard-header h2 { font-size: inherit; margin: 0; }

/* Chart and Table Specific Adjustments */
.chart-box { box-shadow: none; background: transparent; padding: 0; border-radius: 0; margin-bottom: 0px;}
.kpi-card { box-shadow: none; padding: 0; border-radius: 0; text-align: left; transition: none; border-left: none;}

/* Table Overrides for Tailwind compatibility & UX Polish */
#recentTable { border-collapse: separate; border-spacing: 0; margin-top: 0; box-shadow: none; background-color: transparent; width: 100%; }
#recentTable th { background-color: var(--bg-table-header); color: #64748b; padding: 12px 16px; font-size: 0.7rem; text-transform: uppercase; border-bottom: 1px solid var(--border-table); font-weight: 700; }
#recentTable td { padding: 12px 16px; border-bottom: 1px solid var(--border-table); color: var(--text-table); font-size: 0.85rem; }
#recentTable tbody tr:hover { background-color: rgba(68, 71, 90, 0.2); }
#recentTable tbody tr:nth-child(even) { background-color: var(--bg-table-row-even); }

/* Modal specific (Legacy compatibility) */
.modal-overlay { z-index: 1000; }

/* Styles for Devoluções and Usuários */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; white-space: nowrap; display: inline-block; background: #f1f5f9; color: #475569; }
.badge.master { background: #259df4; color: white; }

/* Utility classes used in JS */
.text-success { color: #059669 !important; }
.text-danger { color: #dc2626 !important; }
.font-bold { font-weight: 700 !important; }

/* --- NEW UI MODERNIZATION STYLES --- */

/* Glassmorphism Dropdown */
.glass-dropdown {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.dark .glass-dropdown {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating Actions Bar (Minimalist Header alternative) */
.floating-actions-bar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
    padding: 0.75rem 2rem;
    pointer-events: none; /* Allows clicking content underneath if not on buttons */
}

.floating-actions-bar > * {
    pointer-events: auto; /* Re-enable clicks for actual buttons/content */
}

/* Animation for dropdown */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-slide-up {
    animation: slideInUp 0.2s ease-out forwards;
}

/* User Profile Avatar "Bolinha" */
.avatar-ring {
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-ring:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(2, 171, 243, 0.3);
}

.dark .avatar-ring:hover {
    box-shadow: 0 0 15px rgba(102, 99, 150, 0.3);
}
