/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif; /* Poppins with fallback to Arial */
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 1200px;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Input Groups */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* Time Input */
.time-input {
    display: flex;
    gap: 10px;
}

.time-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.time-input input:focus {
    border-color: #007bff;
    outline: none;
}

/* Buttons */
.calculate-button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.calculate-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Next Button */
.next-button {
    width: 100%;
    padding: 12px;
    background-color: #007bff; /* Blue color */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.next-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #333;
}

/* Estimated Pay Container */
.estimated-pay-container {
    display: flex;
    gap: 20px;
}

/* Input Area */
.input-area {
    flex: 1;
}

/* Workings Out Column */
.workings-out {
    flex: 1;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.workings-out h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.workings-out div {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* Total Deliveries */
.total-deliveries {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.total-deliveries h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.total-deliveries span {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
}

/* Total Pay */
.total-pay {
    margin-top: 20px;
    text-align: center;
}

.total-pay h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.total-pay span {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
}

/* Average Rate */
.average-rate {
    margin-top: 10px;
    text-align: center;
}

.average-rate h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.average-rate span {
    font-size: 16px;
    font-weight: 500;
    color: #007bff;
}

/* Total Miles and Time */
.total-miles, .total-time {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.total-miles h3, .total-time h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.total-miles span, .total-time span {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
}

/* Pay Per Hour Section */
#payPerHour {
    display: none; /* Hidden by default */
}

#payPerHour.active {
    display: block; /* Show when active */
}

#payPerHour .results {
    margin-top: 20px;
}

#payPerHour .result-group {
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#payPerHour .result-group h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

#payPerHour .result-group span {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
}

#payPerHour .workings-out {
    margin-top: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#payPerHour .workings-out h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

#payPerHour .workings-out div {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* Minimum Wage Comparison */
#minimumWageComparison {
    font-size: 16px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .estimated-pay-container {
        flex-direction: column;
    }

    .workings-out {
        margin-top: 20px;
    }

    .container {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}