@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body { font-family: 'Inter', sans-serif; background-color: #f0f2f5; margin: 0; padding: 20px; color: #333; }
.container { max-width: 1200px; margin: auto; }

/* Cabecalho Principal e Menu */
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; background: white; padding: 15px 25px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.header h1 { margin: 0; color: #1a1a1a; font-size: 24px; }
.menu a { text-decoration: none; color: #555; font-weight: 600; margin-left: 20px; font-size: 14px; transition: 0.3s; }
.menu a:hover, .menu a.ativo { color: #0d6efd; }

/* Cartoes (Cards) e Formularios */
.card { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 20px; }
.card h2 { font-size: 18px; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-top: 0; margin-bottom: 20px; color: #222; }

/* Grids e Inputs de Formulario */
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.grid-form-full { grid-column: 1 / -1; }
.grupo-input { display: flex; flex-direction: column; margin-bottom: 10px; }
.grupo-input label { font-weight: 600; margin-bottom: 5px; font-size: 13px; color: #555; }
.grupo-input input, .grupo-input select, .grupo-input textarea { padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; font-family: inherit; transition: border 0.3s; }
.grupo-input input:focus, .grupo-input select:focus { border-color: #0d6efd; outline: none; }

/* Botoes */
.btn { padding: 10px 20px; background-color: #0d6efd; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600; transition: 0.3s; }
.btn:hover { background-color: #0b5ed7; }
.btn-cancelar { background-color: #6c757d; text-decoration: none; padding: 10px 20px; color: white; border-radius: 6px; display: inline-block; font-size: 14px; font-weight: 600; text-align: center; margin-left: 10px;}
.btn-cancelar:hover { background-color: #5c636a; }

/* Tabelas */
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
th, td { padding: 15px 10px; text-align: left; border-bottom: 1px solid #eee; }
th { color: #888; font-weight: 600; text-transform: uppercase; font-size: 12px; }
tbody tr:hover { background-color: #f8f9fa; }

/* Links de Acao nas Tabelas */
.acao-link { margin-right: 10px; text-decoration: none; font-weight: 600; font-size: 13px; }
.editar { color: #0d6efd; }
.excluir { color: #dc3545; }

/* Alertas de Sucesso e Erro */
.alerta { padding: 15px; margin-bottom: 20px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.sucesso { background-color: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.erro { background-color: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }

/* KPIs do Dashboard */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.kpi-card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); display: flex; flex-direction: column; border-left: 5px solid #ccc; }
.kpi-card h3 { margin: 0 0 10px 0; font-size: 14px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-card .valor { font-size: 32px; font-weight: 700; color: #222; }
.border-blue { border-left-color: #0d6efd; }
.border-yellow { border-left-color: #ffc107; }
.border-red { border-left-color: #dc3545; }

/* Badges */
.badge { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-normal { background-color: #d1e7dd; color: #0f5132; }
.badge-atencao { background-color: #fff3cd; color: #856404; }
.badge-critico { background-color: #f8d7da; color: #842029; }