/* Add this to your CSS file */
:root {
    --wst-primary: #4ECDC4;
    --wst-secondary: #44A08D;
    --wst-text: #333;
    --wst-light: #f8f9fa;
    --wst-border: #dee2e6;
    --wst-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --wst-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wst-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: var(--wst-transition);
    pointer-events: none;
}

.wst-modal.wst-show {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: all;
}

.wst-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.wst-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--wst-shadow);
    position: relative;
    transform: translateY(20px);
    transition: var(--wst-transition);
}

.wst-show .wst-modal-content {
    transform: translateY(0);
}

.wst-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--wst-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wst-modal-header h2 {
    margin: 0;
    color: var(--wst-text);
    font-size: 1.5rem;
}

.wst-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0 5px;
    transition: color 0.2s;
}

.wst-close-btn:hover {
    color: var(--wst-text);
}

.wst-modal-body {
    padding: 20px;
}

.wst-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.wst-period-selector {
    display: flex;
    gap: 10px;
}

.wst-period-selector p {
    cursor: default;
    margin: 0;
    padding-top: 0.3em;
    font-weight: 500;
    color: var(--wst-text);
}

.wst-period-selector button {
    padding: 8px 16px;
    border: 1px solid var(--wst-border);
    background-color: white;
    color: var(--wst-text);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
}

.wst-period-selector button:hover {
    background-color: var(--wst-light);
}

.wst-period-selector button.wst-active {
    background-color: var(--wst-primary);
    color: white;
    border-color: var(--wst-primary);
}

.wst-date-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wst-date-picker label {
    font-weight: 500;
    color: var(--wst-text);
}

.wst-date-input {
    padding: 8px 12px;
    border: 1px solid var(--wst-border);
    border-radius: 4px;
    width: 120px;
}

.wst-chart-container {
    margin: 20px 0;
    min-height: 350px;
    border: 1px solid var(--wst-border);
    border-radius: 4px;
    padding: 15px;
    background-color: var(--wst-light);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.wst-show .wst-chart-container {
    opacity: 1;
    transition-delay: 0.1s;
}

.wst-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.wst-stat-card {
    background-color: var(--wst-light);
    border: 1px solid var(--wst-border);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--wst-transition);
}

.wst-show .wst-stat-card {
    opacity: 1;
    transform: translateY(0);
}

.wst-show .wst-stat-card:nth-child(1) {
    transition-delay: 0.2s;
}

.wst-show .wst-stat-card:nth-child(2) {
    transition-delay: 0.3s;
}

.wst-show .wst-stat-card:nth-child(3) {
    transition-delay: 0.4s;
}

.wst-stat-card h3 {
    margin: 0 0 10px 0;
    color: var(--wst-secondary);
    font-size: 1rem;
}

.wst-stat-card p {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--wst-primary);
}

.wst-stat-card small {
    color: #666;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wst-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .wst-period-selector {
        justify-content: space-between;
    }

    .wst-modal-content {
        margin: 10px;
    }
}