/* Custom styles to complement Bootstrap - Two Column Layout */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 10px 0;
}

.container-fluid {
    max-width: 1400px;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border-bottom: 2px solid #000000;
}

.card-body {
    padding: 1.5rem;
}

.card-header h1 {
    font-size: 1.25rem;
    margin: 0;
}

/* Two column layout */

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.left-column, .right-column {
    background: #fff;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

/* Compact form layout */
.calculator-form .compact-row {
    margin-bottom: 0.75rem;
}

.calculator-form .mb-3 {
    margin-bottom: 0.75rem !important;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #495057;
}

.form-control, .form-select {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    height: calc(1.5em + 0.75rem);
}

/* Compact quantity buttons */
.quantity-btn {
    width: 35px;
    height: calc(1.5em + 0.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0;
}

.w50{
    width:50%;
}
.input-group .form-control {
    text-align: center;
}

/* Compact result groups */
.result-group {
    padding: 0.5rem !important;
    margin-bottom: 0.5rem;
    height: 100%;
}

.result-group .small {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.result-group .fw-bold {
    font-size: 0.875rem;
}

.result-group .text-muted {
    font-size: 0.75rem;
}

/* Compact section headers */
.section-header {
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    border-bottom: 2px solid #000000;
}

.section-header h3 {
    font-size: 1rem;
    margin-bottom: 0;
    color: #000000;
}

/* Compact checkboxes */
.form-check {
    margin-bottom: 0.5rem;
}

.form-check-label {
    font-size: 0.875rem;
}

.form-check-input {
    margin-top: 0.15rem;
}

/* Right column results */
.right-column .result-group {
    background: #f8f9fa;
}

.total-result {
    background: linear-gradient(135deg, #000000 0%, #0a58ca 100%);
    color: white;
    padding: 1rem !important;
    margin-top: 1rem;
    border-radius: 0.375rem;
}

.total-result .fs-5 {
    font-size: 1.1rem !important;
}

/* Compact disclaimer */
.disclaimer {
    font-size: 0.75rem;
    margin-top: 1rem;
    line-height: 1.3;
}

.disclaimer p {
    margin-bottom: 0.25rem;
}

/* Remove number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .left-column, .right-column {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 5px 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .calculator-form .compact-row {
        margin-bottom: 0.5rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .form-control, .form-select {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .quantity-btn {
        width: 30px;
        font-size: 0.8rem;
    }
    
    .result-group {
        padding: 0.375rem !important;
    }
    
    .section-header {
        padding-bottom: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .section-header h3 {
        font-size: 0.9rem;
    }
}

/* Focus states */
.form-control:focus, .form-select:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.1);
}

.quantity-btn:focus {
    outline: 2px solid #000000;
    outline-offset: 1px;
}