/**
 * Custom CSS per Miracolo del Mare
 */

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

main {
    flex: 1;
}

/* Effetti hover */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
}

/* Card e box */
.dashboard-card {
    transition: all 0.4s ease;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fff;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Pulsanti */
.btn {
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-secondary:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Tabelle */
.table-hover tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Etichette */
.label-template {
    width: 70mm;
    height: 40mm;
    border: 1px dashed #ccc;
    padding: 5mm;
    margin: 10px;
    font-size: 8pt;
    position: relative;
    page-break-inside: avoid;
    background-color: white;
}

.label-title {
    font-weight: bold;
    font-size: 10pt;
}

.label-lot {
    position: absolute;
    bottom: 5mm;
    right: 5mm;
    font-weight: bold;
}

/* Animazioni HTMX */
.htmx-indicator {
    opacity: 0;
    transition: opacity 500ms ease-in;
}

.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-request.htmx-indicator {
    opacity: 1;
}

/* Statistiche cards */
.stat-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

/* Miglioramenti dashboard */
.container {
    max-width: 1200px;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .stat-icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    header, nav, footer, .no-print {
        display: none !important;
    }
    
    body {
        margin: 0;
        padding: 0;
        background: white;
    }
    
    .label-template {
        page-break-inside: avoid;
        border: none;
    }
} 