/* Themes */
.themes-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-height: calc(100vh - 200px);
    overflow: hidden;
}

.theme-clusters {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    overflow-y: auto;
    max-height: 100%;
}

.theme-cluster {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.cluster-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cluster-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cluster-item-tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.cluster-item-tag:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.theme-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 100%;
    overflow: hidden;
}

.theme-explorer, .symbol-associations {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 300px;
    flex-shrink: 0;
}

.theme-explorer::-webkit-scrollbar,
.symbol-associations::-webkit-scrollbar,
.theme-clusters::-webkit-scrollbar {
    width: 6px;
}

.theme-explorer::-webkit-scrollbar-track,
.symbol-associations::-webkit-scrollbar-track,
.theme-clusters::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.theme-explorer::-webkit-scrollbar-thumb,
.symbol-associations::-webkit-scrollbar-thumb,
.theme-clusters::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.cluster-items::-webkit-scrollbar {
    width: 4px;
}

.cluster-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.cluster-items::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

/* Mood Board Enhancements */
.mood-container {
    flex: 1;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    max-height: calc(100vh - 200px);
    overflow: hidden;
}

.mood-wheel {
    background: var(--bg-card);
    border-radius: var(--radius);
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sensory-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
}

.sensory-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sense-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.sense-category:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.sense-category h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: capitalize;
}

.sense-notes {
    flex: 1;
    min-height: 100px;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    cursor: text;
    overflow-y: auto;
    resize: vertical;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.sense-notes:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.02);
}

.sense-notes:empty:before {
    content: attr(placeholder);
    color: var(--text-muted);
    font-style: italic;
}

.sense-notes .generated-content,
.sense-notes .analysis-content {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
}

.btn-xs {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-xs:hover {
    transform: scale(1.05);
}

.user-mood-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.user-moods-grid::-webkit-scrollbar {
    width: 6px;
}

.user-moods-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.user-moods-grid::-webkit-scrollbar-thumb {
    background: var(--success-color);
    border-radius: 3px;
}

@keyframes moodPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.mood-segment:hover {
    animation: moodPulse 0.6s ease-in-out;
}