/* ==============================================
   GLOBAL STYLES
   ============================================== */
body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff8e;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1 {
    color: #00549f;
    text-align: center;
    margin-top: 20%;
    font-size: clamp(16px, 2vw, 32px);
}

/* Hide Dash interval messages */
.dash-interval {
    display: none;
}

/* ==============================================
   DROPDOWN / CHECKLIST
   ============================================== */
.dropdown-container {
    display: flex;
    flex-direction: column;
    gap: 2%;
    padding: 3%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: 90%;
    max-width: 100%;
    margin: 1% auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-label {
    font-size: clamp(12px, 0.9vw, 18px);
    font-weight: bold;
    color: #333;
    margin: 1% 0 0.5% 0;
}

.dcc_checklist,
#soil-type-checklist,
#normal-stress-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(4px, 1.5vw, 12px);
    padding: clamp(2px, 1vw, 6px);
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0.2% 0.5% rgba(0, 0, 0, 0.1);
}

#normal-stress-checklist {
    flex-direction: row;
    align-items: center;
}

#soil-type-checklist input:checked + label,
#normal-stress-checklist input:checked + label {
    font-weight: bold;
    color: #2d87f0;
}

#soil-type-checklist label,
#normal-stress-checklist label {
    font-size: clamp(10px, 0.8vw, 16px);
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
    padding-left: 2%;
}

#soil-type-checklist label:hover,
#normal-stress-checklist label:hover {
    color: #2d87f0;
}

/* ==============================================
   BUTTONS
   ============================================== */
#start-button, #pause-button, #reset-button {
    flex: 1;
    padding: clamp(6px, 0.8vw, 12px) clamp(10px, 1vw, 20px);
    font-size: clamp(12px, 1vw, 18px);
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 1%;
    transition: background-color 0.3s ease;
}

#start-button { background-color: #28a745; }
#start-button:hover { background-color: #135521; }
#pause-button { background-color: #ffc107; }
#pause-button:hover { background-color: #775b07; }
#reset-button { background-color: #dc3545; }
#reset-button:hover { background-color: #7a151f; }

/* ==============================================
   SLIDER TOOLTIP
   ============================================== */
.slider-label {
    font-weight: bold;
    color: #cc2323;
    margin-left: 1%;
    font-size: clamp(12px, 1.2vw, 20px);
}

.slider {
    margin-top: 1%;
    margin-bottom: 2%;
}

.rc-slider-tooltip-inner {
    font-size: clamp(8px, 0.7vw, 14px);
    padding: clamp(2px, 0.4vw, 6px) clamp(4px, 0.8vw, 10px);
    background-color: #00559f8e;
    color: white;
    font-family: Arial, sans-serif;
    border-radius: 40%;
    min-width: clamp(20px, 2.5vw, 40px);
    min-height: clamp(12px, 1.5vw, 25px);
}

.rc-slider-tooltip-arrow {
    border-width: clamp(4px, 0.6vw, 8px);
}

.rc-slider-mark-text {
    font-size: clamp(8px, 0.7vw, 14px);
    font-family: 'Arial', sans-serif;
    color: #333;
    font-weight: bold;
}


/* ==============================================
   GRAPH / TABLE / CONTAINERS
   ============================================== */
.graph-container {
    background-color: #1777d185;
    border-radius: 1%;
    box-shadow: 0px 4px 8px rgba(133, 25, 25, 0.1);
    padding: 0.5%;
}

.graph-input-container {
    margin-top: 2%;
    background-color: #fff;
}

.layer-properties {
    margin: 1%;
}

.h3 {
    color: #080808;
    margin-left: 1%;
    font-size: clamp(12px, 1vw, 18px);
}

.input-label {
    margin: 2%;
    font-size: clamp(10px, 0.8vw, 16px);
}

.input-field {
    width: clamp(40px, 4vw, 80px);
    font-size: clamp(10px, 0.8vw, 16px);
}

.logo {
    margin-top: 0.5%;
    margin-left: 4%;
}

.anchored-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(12px, 1vw, 18px);
    font-family: Arial, sans-serif;
    border: 1px solid black;
    position: absolute;
    bottom: 0;
}

.table-header {
    text-align: center;
    background-color: rgb(230, 230, 230);
}

.table-cell {
    text-align: center;
    border: 1px solid black;
    background-color: white;
}

.input-container {
    display: inline-block;
    text-align: center;
}

/* ==============================================
   TOOLTIP
   ============================================== */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: clamp(60px, 6vw, 120px);
    background-color: #00559f96;
    color: #fff;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: clamp(10px, 0.8vw, 16px);
    font-weight: 300;
    line-height: 1.4;
    border-radius: 5%;
    padding: 5%;
    position: absolute;
    z-index: 1;
    top: 0%;
    left: 105%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: wrap;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.info-icon {
    width: clamp(12px, 0.8vw, 24px);
    height: clamp(12px, 0.8vw, 24px);
    margin-left: 10%;
    margin-right: 10%;
    max-width: 150%;
    max-height: 150%;
}

/* ==============================================
   RESPONSIVE BUTTON UPDATE
   ============================================== */
#update-button {
    width: 100%;
    height: clamp(40px, 5vw, 60px);
    margin-bottom: 10px;
    background-color: #1777d185;
    color: white;
    font-size: clamp(14px, 1vw, 20px);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.5s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#update-button:hover {
    background-color: #00549f;
}
