/* DAGO PRO - Estilos */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: #1a3a5c;
}

/* LOGIN */
.login-body {
    background: linear-gradient(135deg, #094923 0%, #409a3c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(9, 73, 35, 0.4);
}

.login-logo { text-align: center; margin-bottom: 30px; }
.login-icon { font-size: 52px; display: block; margin-bottom: 10px; }
.login-logo h1 { font-size: 32px; color: #094923; }
.login-subtitle { color: #42954d; font-size: 14px; font-weight: 500; }
.login-footer { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e9ecef; color: #adb5bd; font-size: 12px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #094923; font-size: 14px; }
.form-group input {
    width: 100%; padding: 12px 16px; border: 2px solid #e9ecef;
    border-radius: 8px; font-size: 15px; transition: border-color 0.3s;
}
.form-group input:focus {
    outline: none; border-color: #409a3c;
    box-shadow: 0 0 0 3px rgba(64, 154, 60, 0.15);
}

.btn-login {
    width: 100%; padding: 14px; background: #409a3c; color: white;
    border: none; border-radius: 8px; font-size: 16px;
    font-weight: 600; cursor: pointer; transition: background 0.3s;
}
.btn-login:hover:not(:disabled) { background: #094923; }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* PANEL */
.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 240px;
    background: linear-gradient(180deg, #094923, #0d6b2e);
    color: white; padding: 20px 0; overflow-y: auto; z-index: 100;
}
.sidebar-brand { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand h3 { font-size: 20px; }
.sidebar-menu { padding: 20px 0; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; color: rgba(255,255,255,0.85);
    text-decoration: none; cursor: pointer; transition: all 0.2s;
    font-size: 14px;
}
.sidebar-menu a:hover { background: rgba(255,255,255,0.1); color: white; }
.sidebar-menu a.active { background: rgba(255,255,255,0.15); color: white; border-left: 3px solid #4ade80; }
.sidebar-menu .icon { font-size: 18px; }

.main { margin-left: 240px; padding: 24px; min-height: 100vh; }
.header { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.header h1 { font-size: 28px; color: #0f172a; }

.panel { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #f1f5f9; }
.panel-header h3 { font-size: 18px; color: #0f172a; }

.btn {
    padding: 10px 20px; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: #2271b1; color: white; }
.btn-primary:hover { background: #135e96; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border-left: 4px solid #2271b1; }
.stat-card h4 { font-size: 13px; color: #6c757d; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-card .number { font-size: 26px; font-weight: 700; color: #1a3a5c; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 12px; background: #f8fafc; font-size: 12px; text-transform: uppercase; color: #475569; border-bottom: 2px solid #e2e8f0; }
.table td { padding: 12px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.table tr:hover td { background: #f8fafc; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge.pendiente { background: #fef3c7; color: #92400e; }
.badge.pagada { background: #d1fae5; color: #065f46; }
.badge.parcial { background: #fff3cd; color: #856404; }
.badge.aprobada { background: #d1fae5; color: #065f46; }
.badge.rechazada { background: #fee2e2; color: #991b1b; }
.badge.anulada { background: #f1f5f9; color: #64748b; }

.modal {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 1000;
    justify-content: center; align-items: center; padding: 20px;
}
.modal.active { display: flex; }
.modal-content { background: white; border-radius: 16px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 18px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #6c757d; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #e9ecef; display: flex; justify-content: flex-end; gap: 12px; }