/* Global styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

h2, h3, h4 {
    color: #333;
    font-weight: bold;
}

/* Styling for the dropdown container */
.dropdown-container {
    display: flex;
    align-items: center;
    gap: 20px;  /* Spacing between the two dropdowns */
    margin-bottom: 20px;
}

/* Label styling for better alignment */
.dropdown-container label {
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
    display: inline-block;
    min-width: 120px; /* Control the label width */
}

/* Style for the dropdowns to make them consistent */
.dropdown-container select {
    width: 150px; /* Set the width of dropdowns */
    height: 35px;  /* Increase height for better usability */
    font-size: 14px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
}

/* On hover, change background color */
.dropdown-container select:hover {
    background-color: #f1f1f1;
}

/* Container for buttons */
button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
}

/* Button hover effect */
button:hover {
    background-color: #0056b3;
}

/* Main container */
.stuffing-container {
    max-width: 100%;
    margin: 30px auto;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.stuffing-container h2 {
    text-align: center;
    color: #323232;
}

.stuffing-container button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.stuffing-container button:hover {
    background-color: #575757;
}

/* Fit Results */
.fit-result {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.fit-result h4 {
    color: #333;
    font-size: 18px;
}

.fit-result p {
    font-size: 14px;
    color: #555;
}

.fit-result .error {
    color: #d9534f;
    font-weight: bold;
}

/* Progress Bar */
.progress-bar {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 20px;
    margin-top: 10px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.progress {
    background: linear-gradient(90deg, #4caf50, #81c784);
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    color: white;
    font-weight: bold;
}

/* Table Styling */
table {
    width: 40%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center; /* Center align text in table cells */
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:hover {
    background-color: #ddd;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .navbar .nav-link {
        padding: 12px 16px;
    }

    .stuffing-container {
        padding: 15px;
    }

    .fit-result {
        padding: 10px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid #ccc;
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
    }
}
