/* Custom styles for Rate Calculation Tool */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2C3E50;
    color: #333;
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.2);
    background-color: #f0f0f0; /* light grey */
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #4682B4;
    color: white;
    border: none;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    min-width: 100px;
    padding: 12px 8px;
}

.table th:first-child {
    position: sticky;
    left: 0;
    z-index: 20;
    background-color: #36648B;
    min-width: 180px;
    padding: 12px 8px;
}

.table td {
    border: 1px solid #D5EEF5;
    vertical-align: middle;
    min-width: 100px;
    padding: 8px 6px;
    background-color: rgba(176, 224, 230, 0.1);
}

.table td:first-child {
    background-color: #E0F4FF;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 2px solid #B0E0E6;
}

.form-control {
    border-radius: 6px;
    border: 2px solid #B0E0E6;
    font-size: 14px;
    padding: 8px 10px;
    background-color: rgba(255, 255, 255, 0.98);
}

.form-control:focus {
    border-color: #4682B4;
    box-shadow: 0 0 0 0.3rem rgba(70, 130, 180, 0.25);
    background-color: white;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4682B4;
    border-color: #4682B4;
}

.btn-primary:hover {
    background-color: #36648B;
    border-color: #36648B;
    box-shadow: 0 4px 12px rgba(70, 130, 180, 0.3);
}

.btn-secondary {
    background-color: #87CEEB;
    border-color: #87CEEB;
    color: #333;
}

.btn-secondary:hover {
    background-color: #6BA3D0;
    border-color: #6BA3D0;
}

.btn-info {
    background-color: #5F9DB9;
    border-color: #5F9DB9;
}

.btn-info:hover {
    background-color: #4682B4;
    border-color: #4682B4;
}

.btn-success {
    background-color: #5DADE2;
    border-color: #5DADE2;
}

.alert {
    border-radius: 8px;
    border: none;
}

h1 {
    color: #4682B4;
    font-weight: 700;
    margin-bottom: 30px;
}

.logo {
    max-height: 60px;
    margin-bottom: 20px;
}

/* Number visibility improvements */
span[id^="push_"], span[id^="website_"], span[id^="diff_"] {
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    min-width: 70px;
    text-align: right;
    line-height: 1.2;
}

span[id^="push_"] {
    color: #28a745;
}

span[id^="website_"] {
    color: #007bff;
}

span[id^="diff_"] {
    color: #fd7e14;
}

input[type="number"] {
    text-align: right;
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .table th, .table td {
        padding: 6px 4px;
        font-size: 12px;
        min-width: 80px;
    }

    .table th:first-child, .table td:first-child {
        min-width: 160px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    span[id^="push_"], span[id^="website_"], span[id^="diff_"] {
        font-size: 12px;
        min-width: 60px;
    }

    .form-control {
        font-size: 12px;
        padding: 3px 4px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 24px;
    }

    .table th, .table td {
        font-size: 11px;
        padding: 4px 2px;
        min-width: 70px;
    }
}

/* Animation for calculations */
.calculating {
    opacity: 0.6;
}