/* Shared Theme Styles */

.theme-switcher {
    display: flex;
    gap: 8px;
    background: var(--bg-input);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-right: 15px;
}

.theme-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    padding: 0;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-btn.active {
    background: var(--bg-card);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Base transitions */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header, .sidebar, .card, .entry-panel, .sidebar-card, table, input, select, .modal {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Ensure visibility of specific elements in different themes */
[data-theme="dark"] .logo, [data-theme="gold"] .logo {
    filter: brightness(1.2);
}

/* Specific portal overrides or helpers */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
