/**
 * Base Theme Styles
 * Shared styles and theme transition animations
 */

/* Smooth theme transitions */
body.theme-transitioning,
body.theme-transitioning * {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

/* Theme picker component */
.theme-picker {
    background: var(--secondary-bg, #f8f9fa);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow, 0 2px 4px rgba(0,0,0,0.1));
}

.theme-picker-header h5 {
    color: var(--text-primary, #212529);
    margin-bottom: 1rem;
    font-weight: 600;
}

.theme-options {
    display: grid;
    gap: 0.5rem;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--primary-bg, #ffffff);
    border: 2px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.theme-option:hover {
    border-color: var(--accent-color, #007bff);
    transform: translateY(-1px);
    box-shadow: var(--shadow, 0 2px 4px rgba(0,0,0,0.1));
}

.theme-option.active {
    border-color: var(--accent-color, #007bff);
    background: var(--accent-color, #007bff);
    color: white;
}

.theme-option .theme-icon {
    font-size: 1.25rem;
    min-width: 2rem;
}

.theme-option .theme-name {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
}

.theme-option .theme-description {
    font-size: 0.8rem;
    opacity: 0.8;
    flex: 1;
}

.theme-option.active .theme-description {
    opacity: 0.9;
}

/* Chart theme integration */
[data-theme] .chart-container {
    background: var(--secondary-bg, #f8f9fa);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow, 0 2px 4px rgba(0,0,0,0.1));
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .theme-picker {
        padding: 0.75rem;
    }

    .theme-option {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .theme-option .theme-icon {
        min-width: auto;
    }

    .theme-option .theme-name {
        min-width: auto;
    }

    .theme-option .theme-description {
        font-size: 0.75rem;
    }
}

/* Theme-specific customizations will be handled by individual theme files */