/* STYLE.CSS - Sistema de Gestão Financeira */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary-color: #2c3e50; --secondary-color: #3498db; --success-color: #27ae60;
  --danger-color: #e74c3c; --warning-color: #f39c12; --info-color: #16a085;
  --light-bg: #ecf0f1; --dark-text: #2c3e50; --light-text: #7f8c8d; --white: #ffffff;
  --shadow: 0 2px 10px rgba(0,0,0,0.1); --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); min-height: 100vh; color: var(--dark-text); line-height: 1.6; }
.container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.login-box { background: var(--white); padding: 40px; border-radius: 15px; box-shadow: var(--shadow-hover); width: 100%; max-width: 450px; }
.login-header { text-align: center; margin-bottom: 30px; }
.login-header h1 { color: var(--primary-color); font-size: 28px; margin-bottom: 10px; }
.login-header p { color: var(--light-text); font-size: 14px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--dark-text); font-weight: 600; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #dfe6e9; border-radius: 8px; font-size: 14px; transition: all 0.3s ease; background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(52,152,219,0.1); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 20px; }
.btn { padding: 12px 30px; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-block; text-align: center; text-decoration: none; }
.btn-primary { background: var(--secondary-color); color: var(--white); }
.btn-primary:hover { background:#2980b9; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-success { background: var(--success-color); color: var(--white); }
.btn-danger { background: var(--danger-color); color: var(--white); }
.btn-warning { background: var(--warning-color); color: var(--white); }
.btn-block { width: 100%; display: block; }
.dashboard { background: var(--light-bg); min-height: 100vh; }
.header { background: var(--white); padding: 20px 30px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.header h1 { color: var(--primary-color); font-size: 24px; }
.user-info { display: flex; align-items: center; gap: 15px; }
.logout-btn { background: var(--danger-color); color: var(--white); padding: 8px 20px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); padding: 25px; border-radius: 12px; box-shadow: var(--shadow); border-left: 4px solid var(--secondary-color); }
.stat-card.success { border-left-color: var(--success-color); }
.stat-card.danger { border-left-color: var(--danger-color); }
.stat-card.warning { border-left-color: var(--warning-color); }
.stat-card h3 { color: var(--light-text); font-size: 14px; margin-bottom: 10px; text-transform: uppercase; }
.stat-card .value { color: var(--dark-text); font-size: 32px; font-weight: 700; margin-bottom: 5px; }
.card { background: var(--white); border-radius: 12px; padding: 25px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card-header { border-bottom: 2px solid var(--light-bg); padding-bottom: 15px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
table thead { background: var(--primary-color); color: var(--white); }
table thead th { padding: 15px; text-align: left; font-weight: 600; font-size: 14px; text-transform: uppercase; }
table tbody tr { border-bottom: 1px solid #dfe6e9; }
table tbody td { padding: 15px; font-size: 14px; }
.badge { display:inline-block; padding:5px 12px; border-radius:20px; font-size:12px; font-weight:600; text-transform:uppercase; }
.badge-success{background:#d4edda;color:#155724;} .badge-danger{background:#f8d7da;color:#721c24;}
.alert { padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; }
.alert-success{background:#d4edda;color:#155724;} .alert-danger{background:#f8d7da;color:#721c24;}
.nav-menu { background: var(--white); padding: 15px 0; box-shadow: var(--shadow); margin-bottom: 30px; }
.nav-menu ul { list-style:none; display:flex; flex-wrap:wrap; gap:10px; padding:0 30px; }
.nav-menu a { text-decoration:none; color:var(--dark-text); padding:10px 20px; border-radius:6px; font-weight:500; }
.nav-menu a.active, .nav-menu a:hover { background:var(--secondary-color); color:var(--white); }
.text-right{text-align:right;} .mt-2{margin-top:20px;} .mb-2{margin-bottom:20px;} .mb-3{margin-bottom:30px;}
@media(max-width:768px){ .header{flex-direction:column; gap:15px;} .stats-grid{grid-template-columns:1fr;} .form-row{grid-template-columns:1fr;} }
