        /* Large cards for Bonus & Malus */
    /* .big-card {
        padding: 40px;
        font-size: 1.2rem;
    } */

    .big-card {
        padding: 30px;
    }
        /* Prevent Content Overlap */
    body {
        padding-top: 200px;
        /* Navbar (60px) + Header (60px) */
    }

    .box-tabella {
        background-color: #fdfdfd;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #ddd;
        overflow-x: auto;
    }
    
    .card {
         transition: transform 0.3s;
         width: 100%;
         height: 300px;
     }

    .card-driver {
         transition: transform 0.3s;
         width: 100%;
         height: 200px;
     }

    .card:hover {
         transform: scale(1.05);
     }

    /* .card {
         background: rgba(0, 123, 255, 0.8);
         color: white;
     } */

    /* Rule Cards */
    .card {
        background: #df5353;
        border-radius: 10px;
        padding: 20px;
    }

    .card-body {
         text-align: justify;
     }

    /* Custom card styling */
    /* .custom-card {
        background: rgba(0, 123, 255, 0.8);
        /* Blue transparent background */
            /* color: white; */
        /* padding: 20px;
        border-radius: 10px;
        text-align: center;
        transition: transform 0.3s ease-in-out;
    } */

    /* Bonus & Malus Sections */
    .custom-card {
        background: #df5353;
        padding: 20px;
        border-radius: 10px;
    }

    /* Hover effect */
    .custom-card:hover {
        transform: scale(1.05);
    }
    .drivers-container {
        background: rgba(0, 0, 0, 0.6);
        /* Black with 60% transparency */
        padding: 30px;
        border-radius: 15px;
        margin: 50px auto;
        max-width: 90%;
        backdrop-filter: blur(10px);
        /* Blurred effect */
    }

    /* Individual driver cards */
    /* .driver-card {
        text-align: center;
        background: rgba(255, 255, 255, 0.2); */
        /* Light transparency */
        /* padding: 15px;
        border-radius: 10px;
        transition: transform 0.3s ease-in-out;
    } */

    /* Driver Cards */
    .driver-card {
        background: #df5353;
        padding: 10px;
        border-radius: 10px;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Image styling */
    /* .driver-card img {
        width: 100%;
        border-radius: 10px;
        height: auto;
    } */

    .driver-card img {
        border-radius: 10px;
        height: 100px;
        width: 100px;
        object-fit: cover;
    }

    /* Hover effect */
    .driver-card:hover {
        transform: scale(1.05);
    }
    
     .full-size-img {
        background-image: url("/dev/public/images/f1.jpg");
        /* Update path to your image */
        background-size: cover;
        /* Ensures image covers entire background */
        background-position: center;
        /* Centers the image */
        background-repeat: no-repeat;
        /* Prevents tiling */
        background-attachment: fixed;
        /* Fixes the background while scrolling */
        min-height: 100vh;
        /* Ensures full height of the viewport */
    }

     /* Fix Header Below Navbar */
     header {
        position: fixed;
        top: 60px;
        /* Adjust based on navbar height */
        width: 100%;
        height: 140px;
        z-index: 999;
        /* Slightly lower than navbar */
        background-color: #dc3545;
        /* Same as navbar */
        padding: 10px 0;
        /* Adjust spacing */
    }

     /* Style the Home Button */
     .home-icon i {
        font-size: 24px;  /* Adjust the size */
        color: #ffffff !important; /* Ensure it's visible */
        display: inline-block;
        visibility: visible !important;
        position: relative;
        z-index: 1000; /* Ensure it’s not behind other elements */
        position: fixed;
        top: 10px;
        left: 60px;
        background: #dc3545;
        border: none;
        font-size: 24px;
        padding: 8px 12px;
        cursor: pointer;
        border-radius: 5px;
        /* Ensure it's above content but below sidebar */
    }

    .list-group-item {
        font-size: 18px;
    }

    .login-button {
        background-color: #dc3545;
        color: #d32f2f;
        padding: 8px 15px;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        margin-left: auto;
        /* Push to the right */
    }

    #menu-toggle {
        position: fixed;
        top: 10px;
        left: 10px;
        background: #dc3545;
        color: white;
        border: none;
        font-size: 24px;
        padding: 8px 12px;
        cursor: pointer;
        border-radius: 5px;
        z-index: 1000;
        /* Ensure it's above content but below sidebar */
    }
    
    /* Fix Navbar */
    .navbar {
       position: fixed;
       top: 0;
       width: 100%;
       height: 80px;
       z-index: 1000;
       background-color: #dc3545 !important;
       padding: 10px;
       justify-content: space-between;
       /* Space items evenly */

   }
     /* Sidebar Styles */
     .sidebar {
         height: 100vh;
         position: fixed;
         left: -250px;
         /* Initially Hidden */
         top: 0;
         background-color: #dc3545;
         /* Red */
         width: 250px;
         padding-top: 20px;
         transition: all 0.3s ease-in-out;
         z-index: 1100;
         /* Sidebar is above everything */
     }

     .sidebar a {
         padding: 15px;
         text-decoration: none;
         font-size: 14px;
         display: block;
         color: white;
         transition: 0.3s;
     }

     .sidebar a:hover {
         background-color: #b52a38;
         /* Darker Red */
     }

     .sidebar .close-btn {
         position: absolute;
         top: 10px;
         right: 15px;
         font-size: 24px;
         background: none;
         border: none;
         color: white;
         cursor: pointer;
     }

     /* When sidebar is open */
     .sidebar-open .sidebar {
         left: 0;
     }

     .sidebar-open #menu-toggle {
         display: none;
         /* Hide toggle button when sidebar is open */
     }

     .sticky-column {
        position: sticky;
        left: 0;
        background: white;
        z-index: 2;
        border-right: 2px solid #ddd;
         font-weight: bold;
    }

      table.dataTable {
        table-layout: fixed !important;
    }
    
    table th, table td {
        text-align: center;
        vertical-align: middle; /* opzionale: per centrare anche verticalmente */
    }
    
/* Ensure header cells stay on top */
thead .sticky-column {
    z-index: 3;
}
     /* Responsive layout */
     @media (max-width: 768px) {
         .col-sm-6 {
             flex: 0 0 50%;
             max-width: 50%;
         }

         .small-text {
             font-size: 14px;
             /* Reduce text size for better fit */
         }

         .navbar-nav {
             flex-direction: row !important;
             justify-content: center !important;
             /* Keeps text aligned */
         }
     }

     /* Responsive: Stack cards on small screens */
     @media (max-width: 768px) {

         .col-md-4,
         .col-md-6 {
             flex: 0 0 100%;
             max-width: 50%;
             margin-bottom: 20px;
         }
     }
