/* public/assets/css/style.css */

/* --- VARIÁVEIS DE TEMA (LIGHT MODE PADRÃO) --- */
:root {
    --bg-primary: #F4F7FE; /* Fundo cinza super claro */
    --bg-card: #FFFFFF;
    --text-primary: #2B3674; /* Azul escuro elegante para títulos */
    --text-secondary: #A3AED0;
    --primary-color: #05CD99; /* Verde Agro Tecnológico */
    --primary-hover: #04b386;
    --danger: #EE5D50;
    --warning: #FFCE20;
    
    --shadow-soft: 0px 18px 40px rgba(112, 144, 176, 0.12);
    --radius-md: 16px;
    --radius-lg: 20px;
    --sidebar-width: 280px;
}

/* --- TEMA DARK --- */
[data-theme="dark"] {
    --bg-primary: #0B1437;
    --bg-card: #111C44;
    --text-primary: #FFFFFF;
    --text-secondary: #A3AED0;
    --shadow-soft: 0px 18px 40px rgba(0, 0, 0, 0.25);
}

/* --- RESET E TIPOGRAFIA --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
}

/* --- ESTRUTURA DO LAYOUT --- */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px 30px;
    transition: all 0.3s ease;
}

/* Efeito Glassmorphism para Cards e Menus */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Transição suave ao trocar de tela */
.page-transition {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-radius: 0; /* Remove raio da borda que encosta na tela */
    border-right: 1px solid rgba(163, 174, 208, 0.2);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    margin-bottom: 40px;
}

.sidebar-logo h2 {
    margin: 0;
    font-size: 24px;
}

.sidebar-logo span {
    color: var(--primary-color);
}

.sidebar-logo i {
    font-size: 28px;
    color: var(--primary-color);
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-nav a i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 205, 153, 0.3);
}

/* --- TOPBAR --- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(163, 174, 208, 0.2);
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-icon:hover {
    color: var(--primary-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}