/* Huff Flow Calculator - Custom Styles */

/* Feature icons on home page */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card hover effect */
.hover-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Form styling */
.form-label {
    font-weight: 500;
    color: #495057;
}

/* Land cover rows */
.land-cover-row {
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
}

.land-cover-row:hover {
    background-color: #e9ecef;
}

/* Results section */
#resultsSection .alert h4 {
    margin-bottom: 0.5rem;
}

/* Determination alerts */
.alert-exempt {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-detention {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* Footer */
.footer {
    border-top: 1px solid #dee2e6;
}

/* Table styling */
.table-sm td, .table-sm th {
    padding: 0.4rem;
}

/* Input group styling */
.input-group-text {
    min-width: 40px;
    justify-content: center;
}

/* Card header icons */
.card-header i {
    opacity: 0.8;
}

/* Navbar brand */
.navbar-brand {
    font-weight: 600;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem !important;
    }

    .card-body {
        padding: 1rem;
    }

    .land-cover-row .row {
        flex-direction: column;
    }

    .land-cover-row .col-7,
    .land-cover-row .col-4 {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .land-cover-row .col-1 {
        width: 100%;
        text-align: right;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, form {
        display: none !important;
    }

    #resultsSection {
        display: block !important;
    }

    .card {
        break-inside: avoid;
    }
}

/* Animation for results appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Tooltip customization */
.tooltip-inner {
    max-width: 300px;
    text-align: left;
}

/* Alert icon alignment */
.alert i {
    vertical-align: middle;
}

/* Code blocks in alerts */
.alert code {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Badge styling */
.badge {
    font-weight: 500;
}

/* Quick reference tables */
.table-info {
    --bs-table-bg: #cff4fc;
}

/* Modal adjustments */
.modal-body hr {
    margin: 1rem 0;
}

/* Readonly inputs */
input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Success/warning coloring for CN values */
#cnB {
    font-weight: bold;
    color: #198754;
}

#cnD {
    font-weight: bold;
    color: #fd7e14;
}
