.tracking-card-title {
    /* Existing styles */
    font-size: 1.8rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 15px;
    position: relative;
    
    /* Gradient Text */
    background: linear-gradient(55deg, #007bff, #43af14, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Center the tracking card container */
#tracking-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    padding: 0 15px; /* Responsive padding */
}

/* Styling for the tracking card */
.tracking-card {
    z-index: 1;
    background-color: #dadbda;
    padding: 30px;
    margin-top: 20px;
    border-radius: 15px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding-bottom: 20px; /* Reduced from more substantial padding if present */
    margin-bottom: 10px; 
}

/* Hover effects for the card */
.tracking-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Card body padding */
.tracking-card .card-body {
    padding: 20px;
}

/* Card title styling */
.tracking-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333333; /* Dark gray color for better readability */
}

/* Card text styling */
.tracking-card .card-text {
    font-size: 1rem;
    color: #555555; /* Medium gray for less emphasis */
    margin-bottom: 10px;
}

/* Styling for the button */
.tracking-card .btn {
    font-size: 0.875rem; /* Smaller font size */
    padding: 6px 12px; /* Compact padding */
    border-radius: 5px; /* Slightly rounded button */
    transition: background-color 0.2s ease, color 0.2s ease; /* Smooth transition */
}

/* Button hover effects */
.tracking-card .btn-info:hover,
.tracking-card .btn-secondary:hover {
    opacity: 0.9; /* Slight transparency on hover */
}

/* Scrollable container for tracking details */
.scrollable-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    max-height: 0;
    display: none;
    margin: 20px auto;
    width: auto;
    max-width: 90%; /* Adjust as needed */
}

/* Show class to display the container with smooth transition */
.scrollable-container.show {
    display: block;
    opacity: 1;
    max-height: 400px;
}

/* Style the table inside the scrollable container */
.scrollable-container table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse; /* Optional: For cleaner borders */
}

/* Table header styling */
.scrollable-container table thead th {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 2;
    border-bottom: 1px solid #dee2e6;
    padding: 8px;
    text-align: left;
}

/* Table body styling */
.scrollable-container table tbody td {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

/* Optional: Style table rows on hover */
.scrollable-container table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .scrollable-container {
        max-width: 100%; /* Allow full width on smaller screens */
    }
}

/* Adjusted scrollable container */
.scrollable-container {
    margin: 20px auto;
    width: auto;
    max-width: 90%; /* Adjust as needed */
}

/* New table wrapper to handle scrolling */
.table-wrapper {
    max-height: 400px; /* Adjust based on your design needs */
    overflow-y: auto;
    border: 1px solid #000000;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Style the table */
.table-wrapper table {
    width: 100%;
    border-collapse: collapse; /* For cleaner borders */
}

/* Sticky table headers */
.table-wrapper thead th {
    position: sticky;
    top: 0;
    background-color: #ffffff; /* Ensure background covers content */
    z-index: 2; /* Stay above table body */
    border-bottom: 1px solid #dee2e6;
    padding: 8px;
    text-align: left;
}

/* Table body styling */
.table-wrapper tbody td {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

/* Optional: Style table rows on hover */
.table-wrapper tbody tr:hover {
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .scrollable-container {
        max-width: 100%; /* Allow full width on smaller screens */
    }
}

