/* Required field indicators */
.required-field::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Calculation button styling */
.calc-btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Tooltip icons */
.tooltip-icon {
    color: #6c757d;
    cursor: help;
    font-size: 0.875rem;
}

.tooltip-icon:hover {
    color: #495057;
}

/* Form sections for better organization */
.form-section {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .d-md-flex {
        flex-direction: column !important;
    }
    
    .me-md-2 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card {
        margin: 0.5rem;
    }
    
    .form-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* Range slider styling */
input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
}

input[type="range"]::-webkit-slider-track {
    background: #dee2e6;
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    background: #0d6efd;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-track {
    background: #dee2e6;
    height: 6px;
    border-radius: 3px;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    background: #0d6efd;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* File upload styling */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

.form-control[type="file"]::-webkit-file-upload-button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
    background: #0b5ed7;
}

/* Button improvements */
.btn {
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Card improvements */
.card {
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Input focus improvements */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Disabled field styling */
.disabled-field {
    background-color: #f8f9fa !important;
    opacity: 0.6;
    cursor: not-allowed;
    color: #6c757d !important;
}

.disabled-field option {
    color: #6c757d;
    font-style: italic;
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
