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

:root {
    --bg-color: #010409;
    --card-bg: #0d1117;
    --primary: #58a6ff;
    --primary-hover: #1f6feb;
    --secondary: #8b949e;
    --accent: #3fb950;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --border-color: #30363d;
    --danger: #f85149;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding-bottom: 2rem;
}

.navbar {
    background: rgba(1, 4, 9, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.nav-link {
    color: var(--text-muted) !important;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.2rem;
}

.form-label {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.text-muted {
    color: var(--text-muted) !important;
}

.form-control, .form-select {
    background-color: #0d1117;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    background-color: #0f172a;
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.table {
    color: var(--text-main);
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
}

.table td {
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.badge-consumo {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-weight: 600;
}

.preview-photo {
    max-width: 100px;
    border-radius: 0.5rem;
    cursor: pointer;
}

.calc-box {
    background: rgba(88, 166, 255, 0.1);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    border: 1px solid rgba(88, 166, 255, 0.3);
    color: var(--text-main);
}

.calc-box span:last-child {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
