/* ===========================================
    Overtime Pay Calculator - Tool Specific Styles (Compact)
    =========================================== */

/* Main Container and Form Reset */
.oc-box {
    max-width: 750px;
    margin: 0 auto;
    padding: 0; /* Remove top/bottom padding here */
}

/* Form Styling */
.oc-form {
    padding: 20px; /* Reduced padding */
    border: 1px solid #ffcc80; 
    border-radius: 8px;
    background-color: #fff8e1; /* Light contrast background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.oc-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff9800; /* Orange/Gold Primary Color */
    border-bottom: 2px solid #ff9800;
    padding-bottom: 5px;
    margin-top: 5px;
    margin-bottom: 15px; /* Reduced margin */
}

/* Compact Grid for Inputs */
.oc-compact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; /* Tight gap between inputs */
}

.oc-input-group {
    display: flex;
    flex-direction: column;
    width: 48%; /* Two inputs per row on desktop */
    margin-bottom: 10px;
}

.oc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem; /* Slightly smaller label text */
    margin-bottom: 3px;
}

.oc-input-group input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: right;
    font-size: 1rem;
}

/* Button Styles */
.oc-calculate-btn {
    display: block;
    width: 100%;
    padding: 10px; /* Reduced button padding */
    margin-top: 20px; /* Reduced margin */
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.oc-calculate-btn:hover {
    background-color: #fb8c00;
}

/* Results Display */
.oc-results {
    margin-top: 25px; /* Reduced margin */
    padding: 20px;
    border: 2px solid #ff9800; 
    border-radius: 8px;
    background-color: #fffaf0;
    text-align: center;
}

.oc-results-title {
    color: #e65100;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.oc-result-message {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 15px;
}

.oc-data-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Compact gap */
    justify-content: center;
    margin-bottom: 15px;
}

.oc-data-segment {
    background: #ffffff;
    border-radius: 6px;
    padding: 15px 10px;
    width: 48%; /* Two per row */
    min-width: 150px;
}

/* Specific styling for the TOTAL PAY result */
.oc-data-segment.income-total {
    width: 100%;
    border: 3px solid #ff9800;
    background-color: #fffde7;
    margin-bottom: 10px;
}

.oc-data-segment.income-total .oc-data-value {
    color: #e65100; /* Darker orange for total */
    font-size: 2.2rem;
}

.oc-data-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #007bff; /* Secondary color for breakdown */
    line-height: 1.1;
}

.oc-data-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 5px;
}

.oc-recalculate-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

/* Responsive adjustments for phones */
@media (max-width: 600px) {
    .oc-form {
        padding: 15px;
    }
    /* Stack inputs on small screens for clarity */
    .oc-compact-grid {
        flex-direction: column;
        gap: 5px;
    }
    .oc-input-group {
        width: 100%;
        margin-bottom: 5px;
    }
    .oc-data-grid {
        flex-direction: column;
    }
    .oc-data-segment {
        width: 100%;
        min-width: unset;
    }
    .oc-data-segment.income-total {
        margin-bottom: 5px;
    }
}