/*header*/
 
        /* Header */
        .main-header {
            background: white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            background: #1e3a8a;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .logo i {
            color: #1e3a8a;
            font-size: 1.75rem;
        }
        
        /* Navigation Menu */
        .main-nav {
            flex: 1;
            margin-left: 2rem;
        }
        
        .nav-menu {
            display: flex;
            list-style: none;
            gap: 0.5rem;
            margin: 0;
            padding: 0;
        }
        
        .nav-item {
            position: relative;
        }
        
        .nav-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.625rem 1rem;
            color: #4b5563;
            text-decoration: none;
            font-weight: 500;
            border-radius: 0.5rem;
            transition: all 0.3s;
            font-size: 0.875rem;
        }
        
        .nav-link i {
            font-size: 1.1rem;
        }
        
        .nav-link:hover {
            background: #f3f4f6;
            color: #1e3a8a;
        }
        
        .nav-link.active {
            background: #e0e7ff;
            color: #1e3a8a;
        }
        
        .dropdown-toggle {
            cursor: pointer;
        }
        
        .dropdown-toggle .fa-chevron-down {
            font-size: 0.7rem;
            margin-left: 0.25rem;
            transition: transform 0.3s;
        }
        
        .nav-item:hover .dropdown-toggle .fa-chevron-down {
            transform: rotate(180deg);
        }
        
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 240px;
            border-radius: 0.75rem;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s;
            z-index: 100;
            list-style: none;
            padding: 0.5rem 0;
            margin: 0.5rem 0 0 0;
            border: 1px solid #e5e7eb;
        }
        
        .nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .dropdown-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.625rem 1rem;
            color: #4b5563;
            text-decoration: none;
            font-size: 0.875rem;
            transition: all 0.3s;
        }
        
        .dropdown-link i {
            width: 1.25rem;
            font-size: 1rem;
        }
        
        .dropdown-link:hover {
            background: #f3f4f6;
            color: #1e3a8a;
        }


        /* Mobile Header Styles - Aggiungi alla fine del file main.css */

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1e3a8a;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
}

.mobile-menu.open {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-header .logo {
    font-size: 1.25rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-menu-close:hover {
    color: #ef4444;
}

/* Mobile User Info */
.mobile-user-info {
    padding: 1rem;
    margin: 0 -1rem 1rem -1rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    display:none;
}

.mobile-user-info .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-weight: 700;
}

.mobile-user-info .user-details {
    flex: 1;
}

.mobile-user-info .user-details .name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.mobile-user-info .user-details .email {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Mobile Nav Items */
.mobile-nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-items li {
    margin-bottom: 0.25rem;
}

.mobile-nav-items .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.mobile-nav-items .nav-link:hover,
.mobile-nav-items .nav-link.active {
    background: #e0e7ff;
    color: #1e3a8a;
}

.mobile-nav-items .nav-link i {
    width: 1.25rem;
    font-size: 1rem;
}

/* Mobile Dropdown */
.mobile-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.mobile-dropdown-toggle .fa-chevron-down {
    margin-left: auto;
    transition: transform 0.3s;
}

.mobile-dropdown-toggle.open .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0.5rem 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.mobile-sub-menu.open {
    max-height: 300px;
}

.mobile-sub-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.mobile-sub-menu li a:hover {
    background: #f3f4f6;
    color: #1e3a8a;
}

.mobile-sub-menu li a i {
    width: 1.25rem;
    font-size: 0.9rem;
}

/* Mobile Badge */
.mobile-badge {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 0.625rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* Mobile Logout */
.mobile-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-top: 1.5rem;
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.mobile-logout:hover {
    background: #fee2e2;
}

/* Mobile Responsive Breakpoints */
@media (max-width: 1024px) {
    .main-nav {
        margin-left: 1rem;
    }
}

@media (max-width: 768px) {
    /* Nascondi nav desktop */
    .main-nav {
        display: none;
    }
    
    /* Mostra hamburger */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Header mobile */
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    /* Nascondi nome utente su mobile */
    .user-name span{
        display: none;
    }

    .user-info {
    display: none !important;
    }
    
    /* Riduci padding */
    .dashboard-container {
        padding: 1rem;
    }
    
    /* Overlay e menu mobile */
    .mobile-overlay,
    .mobile-menu {
        display: block;
    }
    
    /* Modifica posizione badge notifiche */
    .notification-link .notification-badge {
        top: -4px;
        right: -4px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.75rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo i {
        font-size: 1.25rem;
    }
    
    .user-info {
        gap: 0.5rem;
    }
    
    .user-name {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .logout-btn {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .logout-btn span {
        display: none;
    }
}

/*FOOTER*/
.app-footer {
    background-color: #1e3a8a;
    color: #ffffff;
    padding: 40px 0 40px 0;
    background:linear-gradient(to right, #8a9ba8 30%, #1e3a8a 70%);
   
   
    
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-left {
    gap: 15px;
}

.footer-right {
    gap: 15px;
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    
}

.footer-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #F9F9F9;
    margin: 0;
    max-width: 600px;
}

.footer-right h4 {
    font-size: 1rem;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li a {
    color: #F9F9F9;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #F9F9F9;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #6c6c8a;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-text p {
        max-width: 100%;
    }
    
    .footer-right {
        align-items: flex-start;
    }
    
    .footer-logo-img {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-text p {
        font-size: 0.8rem;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
    }
}

        
        /* User Info */
        .user-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .user-name {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            color: #374151;
            padding: 0.5rem 1rem;
            background: #f3f4f6;
            border-radius: 2rem;
            font-size: 0.875rem;
        }
        
        .user-name i {
            font-size: 1rem;
        }
        
        .logout-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: #d9534f;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: background 0.3s;
        }
        
        .logout-btn:hover {
            background: #dc2626;
        }
        
        /* Container principale */
        .dashboard-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
        }
        
        /* Titolo pagina */
        .page-title {
            margin-bottom: 2rem;
        }
        
        .page-title h1 {
            color: #1e3a8a;
            font-size: 1.875rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        /* Layout a due colonne */
        .proposals-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }
        
        .proposal-column {
            background: white;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .column-header {
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            color: white;
            padding: 1rem 1.5rem;
        }
        
        .column-header h2 {
            font-size: 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .proposal-list {
            padding: 1rem;
        }
        
        .proposal-card {
            background: #f9fafb;
            border-radius: 0.75rem;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid #e5e7eb;
            transition: all 0.3s;
        }
        
        .proposal-card:hover {
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        
        .shipment-id {
            font-weight: 700;
            color: #1e3a8a;
            margin-bottom: 0.75rem;
            font-size: 1.1rem;
        }
        
        .proposals-list {
            margin-bottom: 0.75rem;
        }
        
        .proposal-item {
            padding: 0.25rem 0;
            font-size: 0.95rem;
            color: #4b5563;
        }
        
        .proposal-letter {
            display: inline-block;
            font-weight: 700;
            background: #e0e7ff;
            color: #1e3a8a;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            text-align: center;
            line-height: 24px;
            font-size: 0.75rem;
            margin-right: 0.5rem;
        }
        
        .accepted-badge {
            display: inline-block;
            background: #d1fae5;
            color: #065f46;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 600;
            margin: 0.5rem 0;
        }
        
        .card-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 0.75rem;
            padding-top: 0.75rem;
            border-top: 1px solid #e5e7eb;
        }
        
        .accept-btn {
            background: #5cb85c;
            color: white;
            padding: 0.375rem 0.75rem;
            border-radius: 0.5rem;
            text-decoration: none;
            font-size: 0.75rem;
            font-weight: 500;
            transition: background 0.3s;
        }
        
        .accept-btn:hover {
            background: #059669;
        }
        
        .details-btn {
            color: #3b82f6;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            padding: 0.75rem 2rem;
        }
        

        
        /* Pulsante aggiungi */
        .add-proposal-btn {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            color: white;
            border: none;
            border-radius: 9999px;
            padding: 1rem 1.5rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
            transition: all 0.3s;
            z-index: 50;
        }
        
        .add-proposal-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
        }
        
        /* Modale */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal.active {
            display: flex;
        }
        
        .modal-content {
            background: white;
            border-radius: 1rem;
            max-width: 500px;
            width: 90%;
            padding: 2rem;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .modal-header h3 {
            color: #1e3a8a;
        }
        
        .close-modal {
            cursor: pointer;
            font-size: 1.5rem;
            color: #6b7280;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-group label {
            display: block;
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: #374151;
        }
        
        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 0.625rem;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            font-family: inherit;
            font-size:0.95rem;
        }
        
        .form-group textarea {
            resize: vertical;
            min-height: 100px;
        }
        
        .form-submit {
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            color: white;
            border: none;
            padding: 0.75rem 2rem;
            border-radius: 0.5rem;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            font-size:0.95rem;
        }
        
        .alert {
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .alert-success {
            background: #d1fae5;
            color: #065f46;
        }
        
        .alert-error {
            background: #fee2e2;
            color: #dc2626;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .proposals-grid {
                grid-template-columns: 1fr;
            }
            
            .header-container {
                flex-direction: column;
                gap: 0.75rem;
                padding: 0.75rem 1rem;
            }
            
            .main-nav {
                margin-left: 0;
                width: 100%;
            }
            
            .nav-menu {
                justify-content: center;
                flex-wrap: wrap;
            }
            
            .nav-link {
                padding: 0.5rem 0.75rem;
                font-size: 0.75rem;
            }
            
            .dropdown-menu {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                border: none;
                background: #f9fafb;
                margin-top: 0.25rem;
                width: 100%;
            }
            
            .nav-item.dropdown {
                position: relative;
            }
            
            .dropdown-toggle .fa-chevron-down {
                display: none;
            }
            
            .dashboard-container {
                padding: 1rem;
            }
            
        
        }
        
        .empty-state {
            text-align: center;
            padding: 2rem;
            color: #6b7280;
        }



/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: #f3f4f6;
    position: relative;
    overflow-x: hidden;
}



.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Card principale per login */
.login-card {
    max-width: 480px;
    width: 100%;
    background: white;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Logo e titolo */
.login-card .logo {
    text-align: center;
    margin-bottom: 1rem;
    display: block;
}



.logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
    background: none;
}

.subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Form */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Opzioni */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
}

.checkbox input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Pulsanti */
.button-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-login {
    background: #3b82f6;
    color: white;
}

.btn-login:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.btn-register {
    background: #10b981;
    color: white;
}

.btn-register:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

/* Tagline finale */
.tagline {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.tagline p {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tagline i {
    color: #5cb85c;
    margin-right: 0.25rem;
}

/* Alert messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.user-name {
    font-weight: 500;
    color: #374151;
}

.logout-btn {
    background: #d9534f;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.3s;
}

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

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    margin-bottom: 2rem;
}

.page-title h1 {
    color: #1e3a8a;
    font-size: 1.875rem;
}

/* Grid a due colonne per proposte */
.proposals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.proposal-column {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.column-header {
    background: #1e3a8a;
    color: white;
    padding: 1rem 1.5rem;
}

.column-header h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proposal-list {
    padding: 1rem;
}

.proposal-card {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.proposal-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.shipment-id {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.proposal-item {
    padding: 0.25rem 0;
    font-size: 0.95rem;
    color: #4b5563;
}

.proposal-letter {
    display: inline-block;
    font-weight: 700;
    background: #e0e7ff;
    color: #1e3a8a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.accepted-badge {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
    padding: 0;
    background:none;
}

.accepted-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
}

.progress-bar-container {
    flex: 1;
    height: 30px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #10b981;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.accepted-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    border-radius: 9999px;
    min-width: 45px;
    text-align: center;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.accept-btn {
    background: #10b981;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
}

.accept-btn:hover {
    background: #059669;
}

.details-btn {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
     padding: 0.75rem 2rem;
}



/* Pulsante aggiungi proposta */
.add-proposal-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    z-index: 50;
}

/* Modale generica */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.modal-header h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: #3b82f6;
}

.close-modal {
    cursor: pointer;
    font-size: 1.75rem;
    color: #6b7280;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #dc2626;
}

/* Form di registrazione */
.register-form .form-group {
    margin-bottom: 1.25rem;
}

.register-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.register-form .form-group label i {
    margin-right: 0.5rem;
    color: #3b82f6;
    width: 1.25rem;
}

.register-form .form-group input,
.register-form .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.register-form .form-group input:focus,
.register-form .form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.register-form .form-group input.error {
    border-color: #dc2626;
    background: #fee2e2;
}

/* Password strength */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background 0.3s;
}

.strength-text {
    margin-top: 0.25rem;
    font-size: 0.7rem;
}

.strength-weak {
    background: #dc2626;
}

.strength-fair {
    background: #f59e0b;
}

.strength-good {
    background: #10b981;
}

.strength-strong {
    background: #059669;
}

/* Bottone submit registrazione */
.btn-register-submit {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.btn-register-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.btn-register-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form message */
.form-message {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}

.form-message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

/* Form row due colonne */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .proposals-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .dashboard-container {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
}

/* Info icon */
.info-icon {
    color: #3b82f6;
    font-size: 0.875rem;
    cursor: help;
    margin-left: 0.5rem;
    transition: color 0.3s;
}

.info-icon:hover {
    color: #1e3a8a;
}

/* Tooltip personalizzato */
.info-tooltip {
    position: relative;
    display: inline-block;
}

.info-tooltip .tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #1e293b;
    color: #fff;
    text-align: left;
    border-radius: 0.5rem;
    padding: 0.75rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    font-weight: normal;
    line-height: 1.4;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Campi orari in due colonne */
.time-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Select personalizzato */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* Modale grande per proposta */


.add-proposal-item {
    background: #e0e7ff;
    border: 1px dashed #3b82f6;
    color: #1e3a8a;
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 100%;
    cursor: pointer;
    margin-top: 0.5rem;
}

.remove-proposal-item {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

/* Campi obbligatori */
.required-field label::after {
    content: '*';
    color: #dc2626;
    margin-left: 0.25rem;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.proposals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.proposal-column {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.column-header {
    background: #1e3a8a;
    color: white;
    padding: 1rem 1.5rem;
}

.column-header h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.proposal-list {
    padding: 1rem;
}

.proposal-card {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.shipment-id {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.proposal-item {
    padding: 0.25rem 0;
    font-size: 0.95rem;
    color: #000;
}

.proposal-letter {
    display: inline-block;
    font-weight: 700;
    background: #e0e7ff;
    color: #1e3a8a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}




.add-proposal-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
    z-index: 50;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .proposals-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-container {
        padding: 1rem;
    }
}

      .details-btn {
    background: #1e3a8a;
    color: white;
     padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
        }


   /* Solution details */     
        
     .details-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }
        
        .detail-card {
            background: white;
            border-radius: 1rem;
            padding: 2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .detail-title {
            color: #1e3a8a;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .detail-row {
            display: flex;
            padding: 0.75rem 0;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .detail-label {
            width: 180px;
            font-weight: 600;
            color: #4b5563;
        }
        
        .detail-value {
            flex: 1;
            color: #1f2937;
        }
        
        .carrier-list {
            margin-top: 0.5rem;
        }
        
        .carrier-item {
            display: flex;
            align-items: center;
            padding: 0.5rem;
            background: #f3f4f6;
            margin-bottom: 0.5rem;
            border-radius: 0.5rem;
        }
        
        .carrier-letter {
            display: inline-block;
            font-weight: 700;
            background: #e0e7ff;
            color: #1e3a8a;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            text-align: center;
            line-height: 28px;
            font-size: 0.875rem;
            margin-right: 0.75rem;
        }
        
        /* Barra di progresso */
        .accepted-section {
            margin: 1.5rem 0;
            padding: 1rem;
            background: #f9fafb;
            border-radius: 0.75rem;
        }
        
        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
        }
        
        .progress-bar-container {
            height: 30px;
            background: #e5e7eb;
            border-radius: 9999px;
            overflow: hidden;
        }
        
        .progress-bar-fill {
            height: 100%;
            background: #10b981;
            border-radius: 9999px;
            transition: width 0.3s ease;
        }
        
        /* Countdown */
        .countdown {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e3a8a;
        }
        
        .countdown-label {
            font-size: 0.75rem;
            color: #6b7280;
            margin-left: 0.5rem;
        }
        
        /* Pulsanti azione */
        .action-buttons {
            display: flex;
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .btn-accept {
            background: #10b981;
            color: white;
            padding: 0.75rem 2rem;
            border-radius: 0.5rem;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: background 0.3s;
            border: none;
            cursor: pointer;
            font-size: 0.95rem;
        }
        
        .btn-accept:hover {
            background: #059669;
        }
        
        .btn-reject {
            background: #d9534f;
            color: white;
            padding: 0.75rem 2rem;
            border-radius: 0.5rem;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: background 0.3s;
            border: none;
            cursor: pointer;
            font-size: 0.95rem;
        }
        
        .btn-reject:hover {
            background: #dc2626;
        }
        
        .btn-map {
            background: #1e3a8a;
            color: white;
            padding: 0.75rem 2rem;
            border-radius: 0.5rem;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: background 0.3s;
            font-size:0.95rem;
            cursor: pointer;
        }
        
  
        
        /* Sezione Goods on board */
        .goods-section {
            margin-top: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .goods-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1e3a8a;
            margin-bottom: 1rem;
        }
        
        .goods-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .goods-table th,
        .goods-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .goods-table th {
            background: #f9fafb;
            font-weight: 600;
            color: #374151;
        }
        
        .goods-table tr:hover {
            background: #f9fafb;
        }
        
        .badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.95rem;
            font-weight: 600;
        }
        
        .badge-accepted {
            background: #d1fae5;
            color: #065f46;
            font-size:0.95rem;
        }
        
        .badge-pending {
            background: #fef3c7;
            color: #92400e;
            font-size:0.95rem;
        }
        
        .back-link {
            display: inline-block;
            margin-top: 1.5rem;
            color: #3b82f6;
            text-decoration: none;
            font-size:0.95rem;
        }
        
        .back-link:hover {
            text-decoration: underline;
        }


        /* app/Assets/css/main.css - Aggiungi alla fine del file */

/* Profile Page Styles */
.profile-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
}

.profile-header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-header p {
    opacity: 0.9;
    margin: 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
}

/* Avatar Section */
.profile-avatar-section {
    text-align: center;
}

.avatar-container {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3b82f6;
    margin-bottom: 1rem;
}

.profile-avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #1e3a8a;
    border: 4px solid #1e3a8a;
}

.change-avatar-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
    width: 100%;
    justify-content: center;
       
        
}



.select-file-btn, .upload-btn {
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.select-file-btn {
    background: #6b7280;
}

.select-file-btn:hover {
    background: #4b5563;
}

.upload-btn {
    background: #10b981;
}

.upload-btn:hover {
    background: #059669;
}

.avatar-hint {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Info Section */
.info-card {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.info-label i {
    margin-right: 0.5rem;
    color: #1e3a8a;
}

.info-value {
    color: #111827;
    font-size: 1rem;
}

/* Action Buttons */
.profile-actions {
    display: flex;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.action-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
    justify-content: center;
    width: 33%;
}



.logout-btn {
    background: #d9534f;
    color: white;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Responsive Profile */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0rem;
    }
    
    .profile-header {
        padding: 1rem;
    }
    
    .profile-header h1 {
        font-size: 1.5rem;
    }
    
    .profile-actions {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* Aggiungi alla fine del file main.css */

/* Gestione Carrier - Tabella */
.table-container {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 1rem;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table thead th {
    background: #1e3a8a;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

/* Pulsanti azioni tabella */
.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.edit-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}


.delete-btn {
    background: #d9534f;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}


.add-carrier-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    gap: 0.5rem;
    transition: background 0.3s;
    margin-top: 2rem;
    
    
}



/* Modal footer per carrier */
.modal-footer {
    padding: 1rem 0 0 0;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.save-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.3s;
}

.save-btn:hover {
    background: #059669;
}

.cancel-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.3s;
}

.cancel-btn:hover {
    background: #4b5563;
}

/* Small per campi form */
.form-group small {
    display: block;
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Icone nei placeholder e label */
.form-group label i {
    margin-right: 0.5rem;
    color: #3b82f6;
    width: 1.25rem;
}

/* Badge per stato */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
     font-size: 0.95rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #f0ad4e;
    color: white;
}

.badge-danger {
    background:#d9534f;
    color: white;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Tutto il tuo CSS esistente fino a .badge-info rimane uguale */

/*NOTIFICATIONS*/
/* Notification badge nel menu */

/* Aggiungi al tuo CSS */

.notification-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn i {
    font-size: 0.9rem;
}

.mark-all-read-btn {
    background-color: #10b981;
    color: white;
}

.mark-all-read-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.mark-all-read-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.delete-all-read-btn {
    background-color: #ef4444;
    color: white;
}

.delete-all-read-btn:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.delete-all-read-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 768px) {
    .column-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .notification-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .notification-actions .action-btn {
        width: 100%;
        justify-content: center;
    }
}


.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d9534f;
    color: white;
    border-radius: 50%;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.nav-link {
    position: relative;
}

/* Notification Card Styles */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.notification-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    position: relative;
}

.notification-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.notification-card.notification-unread {
    background: #eff6ff;
    border-left: 10px solid #3b82f6;
}

.notification-card.notification-unread-success {
    background: #eff6ff;
    border-left: 10px solid #10b981;
}
.notification-card.notification-unread-danger {
    background: #eff6ff;
    border-left: 10px solid #d9534f;
}
.notification-card.notification-unread-warning {
    background: #eff6ff;
    border-left: 10px solid #f0ad4e;
}



/* Notification Header */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.notification-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.notification-title-section h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
}

/* Notification Badge Types */
.notification-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.notification-badge.badge-info {
    background: #3b82f6;
    color: white;
}

.notification-badge.badge-success {
    background: #10b981;
    color: white;
}

.notification-badge.badge-warning {
    background: #f0ad4e;
    color: white;
}

.notification-badge.badge-danger {
    background: #d9534f;
    color: white;
}

/* Notification Date */
.notification-date {
    font-size: 0.7rem;
    color: #000;
}

.notification-date i {
    margin-right: 0.25rem;
}

/* Notification Content */
.notification-content {
    margin-bottom: 1rem;
}

.notification-message {
    margin: 0;
    font-size: 0.95rem;
    color: #000;
    line-height: 1.5;
}

/* Notification Footer */
.notification-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

/* Notification Action Buttons */
.mark-read-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.mark-read-btn:hover {
    background: #059669;
}




.delete-notif-btn {
    background: #d9534f;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.delete-notif-btn:hover {
    background: #dc2626;
}

/* Notification Stats */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.notifications-stats {
    display: flex;
    gap: 1rem;
}

.stat-badge {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: white;
    border: 1px solid #e5e7eb;
}

.stat-badge.unread {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.mark-all-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.mark-all-btn:hover {
    background: #2563eb;
}

/* Notification Responsive */
@media (max-width: 640px) {
    .notification-card {
        flex-direction: column;
    }
    
    .notification-header {
        flex-direction: column;
    }
    
    .notification-footer {
        flex-direction: column;
    }
    
    .notification-actions {
        align-self: flex-end;
    }
    
    .notifications-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mark-all-btn {
        justify-content: center;
    }
    
    .mark-read-btn, 
    .details-btn, 
    .delete-notif-btn {
        width: 100%;
        justify-content: center;
    }
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 1rem;
    color: #6b7280;
}

.empty-state i {
    margin-bottom: 1rem;
    color: #9ca3af;
}


/* Distance Matrix Styles - Aggiungi alla fine del file main.css */

.matrix-toolbar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top:2rem;
    
}

.btn-save, .btn-export, .btn-import {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-save {
    background: #10b981;
    color: white;
}

.btn-save:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-export {
    background: #1e3a8a;
    color: white;
}

.btn-export:hover {
   
    transform: translateY(-2px);
}

.btn-import {
    background: #1e3a8a;
    color: white;
}

.btn-import:hover {
    
    transform: translateY(-2px);
}

.matrix-container {
    background: white;
    border-radius: 1rem;
    overflow: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-height: 70vh;
}

.matrix-wrapper {
    min-width: 600px;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.matrix-table th,
.matrix-table td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.matrix-table th {
    background: #1e3a8a;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.matrix-table .row-header {
    background: #1e3a8a;
    color: white;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 10;
    min-width: 70px;
}

.matrix-table .corner {
    background: #1e3a8a;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 20;
    min-width: 100px;
}

.destination-badge, .origin-badge {
    display: block;
    font-size: 0.6rem;
    font-weight: normal;
    background: #8b5cf6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    margin-top: 0.25rem;
}

.origin-badge {
    background: #8b5cf6;
}

.distance-input {
    width: 80px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.distance-input.mpx-related {
    background: #fef3c7;
}

.distance-input.mpx-related:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.distance-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.distance-input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* Responsive Matrix */
@media (max-width: 768px) {
    .matrix-toolbar {
        flex-direction: column;
    }
    
    .btn-save, .btn-export, .btn-import {
        justify-content: center;
    }
    
    .distance-input {
        width: 55px;
        padding: 0.25rem;
        font-size: 0.75rem;
    }
    
    .matrix-table th,
    .matrix-table td {
        padding: 0.25rem;
    }
    
    .matrix-table .row-header {
        font-size: 0.75rem;
        min-width: 55px;
    }
    
    .matrix-table .corner {
        font-size: 0.7rem;
        min-width: 70px;
    }
}

/* Analytics Page Styles */
.analytics-stats-card,
.analytics-partner-card {
    background: #1e3a8a;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.analytics-stats-card:hover,
.analytics-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.analytics-stats-icon i,
.analytics-partner-icon i {
    color: white;
    font-size: 2em;
    margin-bottom: 10px;
}

.analytics-stats-content h3 {
    color: white;
    margin: 10px 0;
    font-size: 1.5em;
}

.analytics-stats-content h3 span {
    color: white;
    font-size: 0.7em;
}

.analytics-stats-content p {
    color: white;
    margin: 0;
}

.analytics-partner-info h4 {
    color: white;
    margin: 0 0 10px 0;
}

.analytics-partner-info p {
    color: white;
    margin: 5px 0;
}

.analytics-partner-info p strong {
    color: white;
}

.analytics-partner-info small {
    color: rgba(255,255,255,0.8);
}

.analytics-download-card {
    background: transparent;
    padding: 0;
}

.analytics-download-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    transition: background 0.2s;
}

.analytics-download-btn:hover {
    background: #059669;
}

.analytics-download-btn i {
    color: white;
    margin-right: 8px;
}

.analytics-download-card small {
    display: block;
    margin-top: 8px;
    color: #666;
}

.analytics-chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analytics-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.analytics-partners-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Analytics Page Styles - Add these position relative styles */
.analytics-stats-card,
.analytics-partner-card {
    background: #1e3a8a;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative; /* Add this for absolute positioning of info icon */
}

.analytics-stats-icon,
.analytics-partner-icon {
    position: relative; /* Add this */
}

.analytics-stats-icon i:first-child,
.analytics-partner-icon i:first-child {
    font-size: 2em;
    margin-bottom: 10px;
}

.analytics-stats-icon i.fa-info-circle,
.analytics-partner-icon i.fa-info-circle {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 0.9em;
    opacity: 0.7;
    cursor: pointer;
}

.analytics-stats-icon i.fa-info-circle:hover,
.analytics-partner-icon i.fa-info-circle:hover {
    opacity: 1;
}

/* Download button info icon */
.analytics-download-btn i.fa-info-circle {
    margin-left: 8px;
    font-size: 0.9em;
    opacity: 0.7;
}

.analytics-download-btn i.fa-info-circle:hover {
    opacity: 1;
}



.proposal-card.completed {
    border-left: 4px solid #28a745;
    background-color: #f8fff8;
}

.badge-completed {
    background-color: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.proposal-letter.leader {
    background-color: #ffd700;
    color: #333;
    font-weight: bold;
}

.shipment-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.complete-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.complete-btn:hover {
    background-color: #218838;
}

.notes-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.notes-btn:hover {
    background-color: #5a6268;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.status-badge.leader {
    background-color: #ffd700;
    color: #333;
}

.modal-body .form-group {
    margin-top: 15px;
}

.modal-body textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.notes-display {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    white-space: pre-wrap;
}


/* Modale di attesa */
.waiting-modal .modal-content {
    max-width: 500px;
}

.waiting-content {
    text-align: center;
    padding: 10px 0;
}

.spinner-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.spinner-container .fa-truck {
    color: #1e3a8a;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.progress-container {
    margin: 20px 0;
    position: relative;
}

.progress-bar {
    background-color: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.waiting-status {
    margin-top: 15px;
    color: #6c757d;
    font-size: 14px;
}

.waiting-status i {
    margin-right: 8px;
}

#closeWaitingBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-muted {
    color: #6c757d;
    font-size: 0.9rem;
}