* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 40px 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.title {
    text-align: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.dropdowns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.dropdown-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-wrapper label {
    font-size: 0.9rem;
    color: #b0b0b0;
}

select {
    padding: 10px 16px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #404040;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 200px;
    cursor: pointer;
    transition: border-color 0.3s;
}

select:hover {
    border-color: #606060;
}

select:focus {
    outline: none;
    border-color: #808080;
}

.date-input {
    padding: 10px 16px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #404040;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 200px;
    cursor: pointer;
    transition: border-color 0.3s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.date-input:hover {
    border-color: #606060;
}

.date-input:focus {
    outline: none;
    border-color: #808080;
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.fetch-button {
    padding: 6px 16px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 2px solid #808080;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.fetch-button:hover {
    background-color: #2a2a2a;
    border-color: #a0a0a0;
}

.fetch-button:active {
    background-color: #0a0a0a;
}

.export-button {
    padding: 6px 16px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 2px solid #4CAF50;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.export-button:hover:not(:disabled) {
    background-color: #2a2a2a;
    border-color: #66BB6A;
}

.export-button:active:not(:disabled) {
    background-color: #0a0a0a;
}

.export-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #404040;
}

.boxes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.box {
    width: 600px;
    height: 400px;
    border: 2px solid #808080;
    border-radius: 4px;
    background-color: #0a0a0a;
    padding: 20px;
}

.box-title {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .title {
        font-size: 1.5rem;
    }

    .dropdowns {
        flex-direction: column;
        align-items: center;
    }

    .box {
        width: 90vw;
        height: 60vw;
        max-width: 500px;
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.2rem;
    }

    .box {
        width: 90vw;
        height: 60vw;
        max-width: 350px;
        max-height: 250px;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 100px auto;
    border: 4px solid #404040;
    border-top: 4px solid #808080;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.active {
    display: block;
}

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

/* Empty State */
.empty-state {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: #808080;
}

.empty-state.active {
    display: block;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-message {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.empty-state-hint {
    font-size: 0.9rem;
    color: #606060;
}

/* Canvas */
canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Error Toast */
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #dc3545;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    min-width: 300px;
    max-width: 500px;
    animation: slideIn 0.3s ease-out;
}

.error-toast.active {
    display: block;
}

.error-toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.error-toast-title {
    font-weight: 600;
    font-size: 1rem;
}

.error-toast-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.error-toast-close:hover {
    opacity: 1;
}

.error-toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Input Validation Feedback */
.input-error {
    border-color: #dc3545 !important;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.validation-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.validation-message.active {
    display: block;
}

/* Success State */
.success-indicator {
    color: #4CAF50;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

.success-indicator.active {
    display: block;
}

