
/*
 * styles.css — Visual Styling for Sensor Visualization WebApp
 *
 * Author: Hidoyat Ruzmetov
 * Contact: hidoyatruzmetov@arizona.edu
 * Started: January 2025
 * Last Updated: May 7, 2025
 * Product Owner: Biosphere2
 *
 * Description:
 * This stylesheet defines the visual appearance and layout behavior for the 3D sensor viewer.
 * It includes:
 *   • General layout styles for body, plot container, and controls
 *   • Download button design
 *   • 3D Plot legend styling
 *   • Animated modal overlay and popup content
 *   • Plot navigation arrows and slider handle customization
 *   • Responsive and user-friendly interaction elements
 */


body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #f0f0f0;
    overflow: hidden;
    box-sizing: border-box;
}

#title-bar {
    width: 100%;
    height: 6.5%;
    background-color: #0C234B;
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h2{
    margin: 0;
}

.download-button{
    background-color: #AB0520;
    color: #fff;
    border: none;
    border-radius: 6px;
    box-shadow: 0 0 6px #AB0520;
    width: 70%;
    height: 5%;
    padding: 3.5%;
    margin-top: 5%;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.05em;
}

#controls,#plot,#legend{
    margin:8px;
}
#plot{
    width:100%;
    height:80vh;
    margin:0 auto;
}
#legend{
    width:20px;
    height:160px;
    border-radius:3px;
    position:absolute;
    right:32px;
    top:32px;
}
#legend .tick{
    position:absolute;
    left:105%;
    transform:translateY(50%);
    font-size:12px;
}
#legend-label{
    position:absolute;
    width:20px;
    text-align:center;
    transform-origin:top left;
    transform:rotate(270deg) translate(-50%,-130%);
    left:32px;
    top:128px;
    font-size:12px;
    color:#000;
}


/***********************************************
 * Modal Overlay & Content Enhanced Animations
 ***********************************************/

#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#modal-overlay.show-overlay {
    opacity: 1;
    pointer-events: auto;
}

#modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 80%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    border-radius: 15px;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
    overflow: auto;
    padding: 0px;
}

#modal-content.show-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#modal-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #eee;
}

#modal-info {
    margin-bottom: 20px;
}

#modal-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    width: 100%; /* makes sure it adapts to viewport width */
    height: 100%; /* Prevents overflow on small screens */
    overflow: hidden; /* Ensures no extra scrollbars */
    margin: 0px;
}

.nav-group .up-label,
.nav-group .down-label{
    font-size:9pt;
    fill:#333;
}

/* ---------- SLIDER HANDLE OVERRIDE ---------- */
.handle{
    fill:#fff;
    stroke:#333;
    stroke-width:.5;
    rx:3;
    ry:3;
}