:root {
    --bg-color: #f4f7f6;
    --primary: #3498db;
    --primary-hover: #2980b9;
    --secondary: #2c3e50;
    --text-color: #333;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
}

/* Utilitários */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.error-text { color: #e74c3c; }

/* Cards e Containers */
.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.login-box {
    width: 100%;
    max-width: 400px;
}
.container {
    /* max-width: 1200px; */
    margin: 2rem auto;
}

/* Formulários */
.input-group {
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}
input:focus { border-color: var(--primary); }

.input-inline {
    max-width: 1000px;
    margin: 10px;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.input-inline input { flex: 1; 
                        max-width: 200px;}

/* Botões */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn.secondary { background: var(--secondary); color: #fff; }

/* Tabela */
.table-responsive {
    overflow-x: auto;
    margin-top: 1.5rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
th {
    background-color: #f8f9fa;
    color: var(--secondary);
    font-weight: 600;
    white-space: nowrap;
    width: 1%;
}
tr:hover td { background-color: #f1f4f8; }

/* Navegação */
.navbar {
    background: var(--card-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.nav-brand { font-size: 1.25rem; font-weight: bold; color: var(--primary); }
.btn-logout { color: #e74c3c; text-decoration: none; font-weight: 500; }

/* Alertas */
.alert { padding: 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert.error { background: #fde8e8; color: #c0392b; border: 1px solid #fadbd8; }
.alert.warning { background: #fff4d6; color: #856404; border: 1px solid #ffe8a1; }
.alert.success { background: #e5f5e9; color: #256b38; border: 1px solid #c3e6cb; }