﻿/* ============================================================
   TEMA PETROL GREEN - FUEL WEB PORTAL
   ============================================================ */

/* ======== SFONDO GENERALE ======== */
body {
    background-color: #F5F7F4;
    font-family: Arial, sans-serif;
    color: #1A1A1A;
    margin: 0;
    padding: 0;
}

/* ======== HEADER ======== */
.header {
    background-color: #0B3D2E;
    color: #FFFFFF;
    padding: 15px;
    text-align: center;
    border-bottom: 4px solid #146B49;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.header h1 {
    margin: 5px 0 0 0;
}

/* ======== CONTENUTO CENTRALE (CARD) ======== */
.content {
    background: #FFFFFF;
    width: 80%;
    margin: 30px auto;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* ======== FOOTER ======== */
.footer {
    text-align: center;
    padding: 10px;
    color: #666;
    font-size: 12px;
    margin-top: 20px;
}

/* ============================================================
   INPUT, SELECT, TEXTBOX — GRADIENTI + OMBRE
   ============================================================ */

input[type=text],
input[type=password],
select {
    width: 250px;
    padding: 8px;
    margin: 5px 0;
    border: 2px solid #146B49;
    border-radius: 4px;
    background: linear-gradient(to bottom, #ffffff, #e8f2ed);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.15);
}

input[type=text]:focus,
input[type=password]:focus,
select:focus {
    border: 2px solid #0B3D2E;
    background: linear-gradient(to bottom, #ffffff, #d9efe6);
    box-shadow: inset 0 0 8px rgba(20,107,73,0.35);
}

/* ============================================================
   BOTTONI — PETROL GREEN + OMBRE
   ============================================================ */

.btn,
button,
input[type=submit],
.aspNetButton {
    background-color: #146B49;
    color: #FFFFFF;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    transition: all 0.2s ease-in-out;
}

.btn:hover,
button:hover,
input[type=submit]:hover,
.aspNetButton:hover {
    background-color: #0E5238;
    box-shadow: 0 3px 6px rgba(0,0,0,0.35);
}

.btn-secondary {
    background-color: #A3B8AC;
    color: #1A1A1A;
}

.btn-secondary:hover {
    background-color: #8FA59A;
}

/* ============================================
   GRIDVIEW ENTERPRISE STYLE
   ============================================ */

.gridview {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Header sticky */
.gridview th {
    background: #006b5c;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 3px solid #004f44;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Celle */
.gridview td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

/* Righe alternate */
.gridview tr:nth-child(even) {
    background: #f3fdfb;
}

/* Hover */
.gridview tr:hover {
    background: linear-gradient(to right, #e0f7f3, #f7fffd);
    cursor: pointer;
    transition: 0.15s ease-in-out;
}

/* Colonne numeriche */
.gridview .col-importo,
.gridview .col-litri {
    text-align: right;
    font-weight: 600;
}

/* Riga totale */
.gridview tr.total-row td {
    font-weight: bold;
    background: #d9f3ef;
    border-top: 2px solid #006b5c;
}

/* Scrollbar elegante */
.gridview::-webkit-scrollbar {
    height: 10px;
}
.gridview::-webkit-scrollbar-thumb {
    background: #006b5c;
    border-radius: 5px;
}
.gridview::-webkit-scrollbar-track {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .gridview {
        font-size: 13px;
    }

    .gridview th,
    .gridview td {
        padding: 8px;
    }

    .content {
        width: 100%;
        padding: 10px;
    }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-box {
    width: 350px;
    margin: 60px auto;
    padding: 25px;
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.20);
}

.login-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 15px;
    color: #0B3D2E;
}
