/* Fuel System Main CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.container-login {
    max-width: 500px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 15px;
}

h1, h2, h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #45a049;
    text-decoration: underline;
}

.btn:hover{
    text-decoration: none;
}




.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
}



.btn-primary {
    background: #4CAF50;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #229954;
}

.btn-warning {
    background: #f39c12;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin: 5px;
}

form {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.form-group {
    display: grid;
    gap: 5px;
}

label {
    font-weight: 600;
    color: #333;
}

input, select, textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(224, 225, 229, 0.3);
}

input[type="submit"], input[type="button"], button {
    background: #4CAF50;
    color: white;
    cursor: pointer;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    transition: all 0.3s;
}

input[type="submit"]:hover, input[type="button"]:hover, button:hover {
    background: #45a049;
}

input[type="checkbox"], input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"] {
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th {
    background: #4CAF50;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background: #f5f5f5;
}

thead tr {
    background: #4CAF50;
}

tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid;
}

.error, .alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-left-color: #e74c3c;
}

.success, .alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-left-color: #27ae60;
}

.info, .alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #070101;
    border-left-color: #000101;
}

.warning, .alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    border-left-color: #f39c12;
}

/* Cards */
.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background: #4CAF50;
    color: white;
    padding: 15px;
    font-weight: 600;
}

.card-body {
    padding: 10px;
}

.card-footer {
    background: #f8f9fa;
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: right;
}

/* Dashboard Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

nav a {
    display: inline-block;
    margin-right: 20px;
    padding: 8px 15px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s;
}

nav a:hover {
    border-color: #f4f4f5;
    background: #e0e7ff;
}

.logout-btn {
    float: right;
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 10px;
    color: #4CAF50;
    font-weight: 600;
}

.back-link:before {
    content: "⬅️ ";
}

/* Footer */
footer {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    color: #999;
    font-size: 0.9rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 10px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 10px; }

.flex {
    display: flex;
    gap: 10px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .container-login {
        max-width: 100%;
    }

    h1 {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 8px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    nav a {
        display: block;
        margin: 5px 0;
        margin-right: 0;
    }

    .logout-btn {
        float: none;
        margin-top: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .page-title {
        font-size: 1.1rem;
    }
}

.header{
    position: relative;
}

.header-links{
    position: absolute;
    right: 20px;
    top: 33px;
}

.header-links a{
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
}

/* ============================= */
/* DASHBOARD CLIENTE */
/* ============================= */

.saldo-card{

    background: linear-gradient(135deg,#4CAF50,#2E7D32);
    color:white;
    border-radius:15px;
    padding:25px;
    text-align:center;
    margin-bottom:20px;

}

.saldo-card h1{

    color:white;
    font-size:42px;
    margin-top:10px;

}

.nivel-card{

    background:white;
    border-radius:15px;
    padding:20px;
    box-shadow:0 3px 10px rgba(0,0,0,.15);
    margin-bottom:20px;
    text-align:center;

}

.nivel-regular{

    color:#27ae60;
    font-size:28px;
    font-weight:bold;

}

.nivel-frecuente{

    color:#f39c12;
    font-size:28px;
    font-weight:bold;

}

.nivel-vip{

    color:#8e44ad;
    font-size:28px;
    font-weight:bold;

}

.progress{

    width:100%;
    background:#ddd;
    height:18px;
    border-radius:30px;
    overflow:hidden;
    margin-top:15px;

}

.progress-bar{

    background:#4CAF50;
    height:100%;
    transition:.5s;

}

.info-card{

    background:#eef8ff;
    border-left:5px solid #4CAF50;
    padding:15px;
    border-radius:10px;
    margin-top:20px;
    text-align:left;

}

.botones-dashboard{

    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:20px;

}

.botones-dashboard a{

    width:100%;
    font-size:18px;

}

@media(min-width:768px){

    .botones-dashboard{

        flex-direction:row;

    }

}