/* General Body & Layout */

:root {
    --background-1: #FAF8F2;
    /* --background-1:#F5F5F5; */
}


body {
    /* background-color: #f5f5dc; */
    background-color: var(--background-1);
    /* background-color: rgba(255, 255, 255, 0.9); */
    /* background: linear-gradient(135deg, #f5f5dc, #e6d5b8); */

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* overflow-y: hidden; */
}

#map {
    height: 100vh;
    /* Make map fill the vertical height of the screen */
    width: 100%;
}

main.col-lg-9 {
    height: calc(100vh - 56px);
    /* Full viewport height minus navbar height */
    overflow: hidden;
}

.control-panel {
    height: 92vh;
    /* background-color: #f5f5dc; */
    background-color: var(--background-1);
    /* background-color: #; */

    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-right: 1px solid #dee2e6;
}

.app-title {
    color: #343a40;
    font-weight: 600;
}


/* Changes */



/* changes end */


/* Card Styling */
.card {
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-body {
    background-color: rgba(255, 255, 255, 0.9);
}

.card-header {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

.card-header-blue {
    background-color: #0d6efd;
}

.card-header-red {
    background-color: #dc3545;
}

.card-header-green {
    background-color: #198754;
}

#selected-location-body p {
    margin-bottom: 0.5rem;
}

#selected-location-body strong {
    display: inline-block;
    min-width: 70px;
    /* Align text */
}

/* Search Suggestions */
.suggestions-container {
    position: absolute;
    background: white;
    width: calc(100% - 42px);
    /* Adjust width to fit inside the card body next to the button */
    max-height: 200px;
    overflow-y: auto;
    z-index: 1100;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    font-size: 14px;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.suggestion-item:hover {
    background: #e9ecef;
}


/* Modal Styling */
.modal-container {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* This is a flex container now */

.modal-container {
    display: none;
    /* Start hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Use flexbox to center the content when it's shown */
    justify-content: center;
    align-items: center;
}


.modal-content-custom {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    /* Limit max width */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
}

#modal-body p {
    font-size: 1.2rem;
    margin: 10px 0;
}

/* Report Summary Section Styling */
#report-summary-section {
    /* background-color: #e9ecef; */
    /* background-color: rgba(255, 255, 255, 0.9); */
    background-color: var(--background-1);
    /* background: linear-gradient(135deg, #f5f5dc, #e6d5b8); */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
    padding: 40px 20px;
}

.report-title {
    color: #343a40;
    font-weight: 600;
    border-bottom: 2px solid #ced4da;
    padding-bottom: 15px;
}

.report-card {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.report-card .card-header {
    background-color: #f8f9fa;
    color: #495057;
    font-size: 1.1rem;
    border-bottom: 1px solid #ced4da;
}

.report-card p {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.report-card strong {
    color: #343a40;
}


#scrollTopBtn {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stays in the same place on the screen */
    bottom: 30px;
    right: 200px;
    z-index: 99;
    /* Stays on top of other content */
    border: none;
    outline: none;
    background-color: #A0522D;
    color: white;
    cursor: pointer;
    padding: 0px;
    border-radius: 50%;
    font-size: 18px;
    width: 50px;
    height: 50px;
    transition: opacity 0.4s, background-color 0.3s;
}

#scrollTopBtn:hover {
    background-color: #5C4033;
}


#date-picker {
    /* width: 100%; */
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
}


/* =============================== */
/* STYLE FOR THE LOADING SPINNER*/
/* =============================== */
/* Simple CSS spinner for loading indication */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* Light part of the circle */
    border-radius: 50%;
    border-top-color: #fff;
    /* Opaque part of the circle */
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    /* Space between text and spinner */
    vertical-align: middle;
}

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

/* Style for the button when it's disabled */
#predict-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}


.tempus-dominus-widget {
    transition: none !important;
}

#hour-picker-input,
#forecast-date {
    caret-color: transparent;
}




/* Visual Summary Timeline */
.visual-summary {
    /* background-color: #fafafa; */
    border-radius: 6px;
    padding: 16px;
    /* border: 1px solid #eee; */
}

.visual-summary p {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    text-align: center;
}

.visual-summary strong {
    color: #2E7D32;
}




/* Add a blinking cursor effect to the end of the textarea while streaming */
.streaming {
    caret-color: transparent;
    /* Hide the default caret */
}

.streaming::after {
    content: '▋';
    /* A solid block character */
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}


/* Style the placeholder for the contenteditable div */
[contenteditable][aria-placeholder]:empty:before {
    content: attr(aria-placeholder);
    color: #6c757d;
    /* Standard bootstrap placeholder color */
    opacity: 1;
    pointer-events: none;
    /* Allows clicks to go "through" the placeholder */
}

#report-detailed-description {
    min-height: 150px;
    overflow-y: auto;
    resize: none;
    /* white-space: pre-wrap;  */
}

#report-detailed-description:empty:before {
    content: attr(aria-placeholder);
    color: #6c757d;
    cursor: text;
    pointer-events: none;
}


#hour-picker-input,
#forecast-date,
.input-group-text{
    border-radius: 0;
}


/* The wrapper needs to be relative for the absolute positioning of the overlay */
#pickers-wrapper {
    position: relative;
    margin-bottom: 1rem;

}



/* Overlay styles */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.375rem;
    transition: opacity 0.3s ease;
}

.overlay-content {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
}

.overlay-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #DC3545;
}

/* Input styling */
.form-control:disabled {
    background-color: #f8f9fa;
}


/* A helper class to hide the overlay with JavaScript */
#picker-overlay.hidden {
    display: none;
}