/* src/css/style.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --sidebar-width: 250px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--primary-color);
    color: #fff;
    padding: 20px;
}

.sidebar h2 { text-align: center; margin-bottom: 20px; border-bottom: 1px solid var(--secondary-color); padding-bottom: 10px; }

.sidebar ul { list-style: none; }
.sidebar ul li a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    padding: 12px;
    border-radius: 5px;
    transition: 0.3s;
}

.sidebar ul li a:hover { background: var(--secondary-color); color: #fff; padding-left: 15px; }

.sidebar hr { border: 0; border-top: 1px solid var(--secondary-color); margin: 15px 0; }

/* Conteúdo */
.main-content { flex: 1; padding: 30px; }

/* Formulário Adaptável */
.form-inline {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap; /* Permite quebrar linha se houver muitos campos */
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-end;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-group { display: flex; flex-direction: column; flex: 1; min-width: 140px; }
.form-group label { font-size: 0.75rem; font-weight: bold; margin-bottom: 5px; color: #666; text-transform: uppercase; }
.form-group input, .form-group select { padding: 10px; border: 1px solid #ddd; border-radius: 4px; background: #fff; }

button { padding: 10px 20px; border: none; border-radius: 4px; color: white; font-weight: bold; cursor: pointer; transition: 0.2s; }
button:hover { opacity: 0.8; }

/* Tabelas e Cards */
table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; color: #7f8c8d; font-size: 0.75rem; text-transform: uppercase; }

.text-danger { color: var(--danger-color); font-weight: bold; }
.text-success { color: var(--success-color); font-weight: bold; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.card { background: white; padding: 20px; border-radius: 10px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }