/* ============================================
   BASE STYLES - EdoisFilms System
   Sistema de Layout Global
   ============================================ */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.5;
}

/* Container Principal - Ajusta com Sidebar */
.main-content {
    margin-left: var(--sidebar-width, 16rem);
    margin-top: 4rem;
    min-height: calc(100vh - 4rem);
    padding: 1.5rem;
    transition: margin-left 0.3s ease;
}

/* Limites de Largura do Container */
.container-wrapper {
    max-width: calc(100vw - var(--sidebar-width, 16rem) - 3rem);
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
}

/* Topbar - Ajusta com Sidebar */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width, 16rem);
    right: 0;
    height: 4rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    z-index: 30;
    transition: left 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

/* Cards e Containers */
.content-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

/* Card de Destaque (Dashboard / Resumos) */
.card-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #ffffff;
}

.card-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.card-subtext {
    font-size: 0.875rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Topbar User Menu - Limpo sem backgrounds */
.topbar .relative button {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.topbar .relative button:hover {
    background: none !important;
    border: none !important;
    transform: none !important;
}

.topbar .relative button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Avatar sem borda */
.topbar img.rounded-full,
.topbar .rounded-full {
    border: none !important;
}

/* Sininho - hover roxo */
.topbar button.relative.text-gray-500:hover {
    color: #8b5cf6 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .topbar {
        left: 0;
    }
}

/* Variáveis CSS */
:root {
    --sidebar-width: 16rem;
    --primary-color: #8b5cf6;
    --secondary-color: #7c3aed;
}
