/* GeocodePortal Custom Styles */

/* Body and Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Form Styling */
.form-control:focus,
.form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

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

/* Tables */
.table th {
    font-weight: 600;
    white-space: nowrap;
}

.table-responsive {
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Progress Bar */
.progress {
    border-radius: 0.5rem;
}

/* Sticky Table Header */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Results Container Scroll */
#resultsContainer .table-responsive::-webkit-scrollbar {
    width: 8px;
}

#resultsContainer .table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#resultsContainer .table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#resultsContainer .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Loading Spinner */
#loadingSpinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Login Page */
.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

/* Raw Response */
#rawResponseText {
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.85rem;
}

/* Agent/Branch Cards */
#agentResults .card {
    transition: transform 0.2s;
}

#agentResults .card:hover {
    transform: translateY(-2px);
}

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

/* Footer */
footer {
    margin-top: auto;
}

/* Alert Animations */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Loading State */
.btn:disabled {
    cursor: not-allowed;
}

/* File Input Styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .table-responsive {
        max-height: 400px !important;
    }

    #agentResults .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Status Indicators */
.status-ok {
    color: #198754;
}

.status-cache {
    color: #0dcaf0;
}

.status-error {
    color: #dc3545;
}

/* Tooltip */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

/* Modal */
.modal-header {
    background-color: #f8f9fa;
}

/* Input Group */
.input-group-text {
    background-color: #f8f9fa;
}

/* Map Link */
#mapLink {
    text-decoration: none;
}

#mapLink:hover {
    text-decoration: underline;
}
