/* Custom CSS per Autolotus Web App */

/* Generale */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Tabelle */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Badge per stati */
.badge-patente-scaduta {
    background-color: #dc3545;
}

.badge-patente-scadenza {
    background-color: #ffc107;
    color: #000;
}

.badge-patente-valida {
    background-color: #28a745;
}

/* Form validazioni */
.textarea-warning {
    border-color: #ffc107 !important;
}

.char-counter {
    font-size: 0.875rem;
    color: #6c757d;
}

.char-counter.warning {
    color: #ffc107;
    font-weight: bold;
}

/* Foto veicoli */
.foto-thumbnail {
    max-width: 150px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.foto-slot {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-slot.filled {
    border-style: solid;
    border-color: #28a745;
}

/* Steps wizard */
.steps-progress {
    margin-bottom: 2rem;
}

.step-item {
    position: relative;
    padding: 10px;
    text-align: center;
}

.step-item.active {
    font-weight: bold;
}

.step-item.completed {
    color: #28a745;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }

    body {
        margin: 0;
        padding: 0;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

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

/* Bottoni azioni */
.btn-action-group {
    display: flex;
    gap: 0.5rem;
}

/* Card intestazioni */
.card-header-custom {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Responsive tables */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
}
