/* Custom App Styles - Gestionale Aurial v2.0 */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Global Overrides */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Card Animations */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Badge Custom */
.badge-priority-alta {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
}

.badge-priority-media {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
}

.badge-priority-bassa {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Flash Messages */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

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

/* Sidebar Active Link */
.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

/* Menu Mobile Improvements */
.menu-mobile-btn {
    background: transparent !important;
    border: none !important;
    position: relative;
    padding: 0.75rem !important;
}

.menu-mobile-btn:hover,
.menu-mobile-btn:focus,
.menu-mobile-btn:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.menu-mobile-btn i {
    font-size: 2.5rem !important;
    transition: transform 0.2s ease;
}

.menu-mobile-btn:active i {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .menu-mobile-btn {
        padding: 1rem !important;
    }
    
    .menu-mobile-btn i {
        font-size: 2.8rem !important;
    }
}

/* Overlay per chiusura sidebar */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-wrapper.toggled #overlay {
    display: block;
    opacity: 1;
}

@media (min-width: 992px) {
    #overlay {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    .sidebar-wrapper,
    .main-header,
    .btn,
    .no-print {
        display: none !important;
    }
}
