 .json-display {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 10px;
    white-space: pre-wrap; 
    word-wrap: break-word; 
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.9em;
} 



/* Base styles for the AnyLogic integration */
.anylogic-simulation-container {
    text-align: center; /* Center the button */
    margin-bottom: 20px;
}


.anylogic-simulation {
    /* border: 1px solid #eee; */
    padding: 15px;
    min-height: 100px; /* Ensure container has some height */
    position: relative; /* Needed for absolute positioning of loader */
    text-align: left; /* Reset text alignment for results */
}

/* Loader styles */
/* .anylogic-loader {
    display: none; 
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #f3f3f3; 
    border-top: 5px solid #3498db; 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.anylogic-loader.visible {
    display: block; 
} */

.anylogic-progress-container {
    display: none;
    background-color: #e0e0e0;
    /* height: 24px; */
    height: 10px;
    border-radius: 12px;
    margin-bottom: 20px;
    margin-top: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 30%;
    margin: 0 35% 0 35%;
}

.anylogic-progress-bar {
    height: 100%;
    width: 0;
    /* background: linear-gradient(to right, #4776E6, #8E54E9); */
    background-color: rgb(0,37,84);
    border-radius: 12px;
    transition: width 0.5s ease;
}

.anylogic-progress-text {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.7);
    z-index: 1;
}


.anylogic-progress-container.visible {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Chart Card Styling */
.chart-card {
    background-color: #ffffff; /* White background */
    border: 1px solid #e0e0e0; /* Light grey border */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Internal spacing */
    margin-bottom: 10px; /* Space below card */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow */
}

.chart-card h3 {
    margin-top: 0; /* Remove default top margin for heading */
    margin-bottom: 15px; /* Space below heading */
    text-align: center; /* Center chart titles */
    color: #333;
    font-size: 1.1em;
}


.psw-button {
    /* background-color: #f4c400; */
    background-color: #851F64;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    user-select: none;
}

.psw-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.psw-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Disabled state */
.psw-button.disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
    opacity: 0.7;
}

/* Ensure no hover effects on disabled buttons */
.psw-button.disabled:hover,
.psw-button.disabled:active {
    transform: none;
    box-shadow: none;
}