/* Estilos personalizados para Sistema de Gestión de Gas */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.container {
    flex: 1;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Cards */
.card {
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,.15) !important;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Stats Cards */
.card.bg-info,
.card.bg-success,
.card.bg-warning {
    border: none;
    transition: transform 0.3s;
}

.card.bg-info:hover,
.card.bg-success:hover,
.card.bg-warning:hover {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Tables */
.table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Upload area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #e7f1ff;
}

.upload-area.dragover {
    border-color: var(--success-color);
    background-color: #d1f2eb;
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Instructions List */
.instructions-list {
    list-style: none;
    counter-reset: instructions;
    padding-left: 0;
}

.instructions-list li {
    counter-increment: instructions;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    position: relative;
    padding-left: 60px;
}

.instructions-list li::before {
    content: counter(instructions);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* Loading Spinner */
.spinner-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.spinner-container.active {
    display: flex;
}

/* Badges */
.badge {
    padding: 8px 12px;
    font-weight: 500;
}

/* Price Cards */
.price-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.price-card h4 {
    font-weight: 700;
    margin-bottom: 10px;
}

.price-card .price {
    font-size: 2rem;
    font-weight: 700;
}

/* Period Selector */
.period-selector {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Modal improvements */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-radius: 15px 15px 0 0;
    background-color: var(--primary-color);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .card.bg-info,
    .card.bg-success,
    .card.bg-warning {
        margin-bottom: 15px;
    }
    
    .instructions-list li {
        padding-left: 50px;
    }
    
    .instructions-list li::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* Print styles for PDF generation */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
}

/* Animation for cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Success message */
.success-message {
    background-color: #d1e7dd;
    border-left: 4px solid #198754;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
