/* Theme Manager Specific Styles */

.theme-manager-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Overview Section */
.theme-sets-overview {
    margin-bottom: 3rem;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.overview-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.overview-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

/* Chip Legend */
.chip-legend {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chip-legend h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legend-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.legend-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 80px;
}

/* Compact legend for inline display */
.chip-legend-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.chip-legend-compact .legend-title {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 0.25rem;
}

.chip-legend-compact .legend-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: auto;
    margin-left: 0.25rem;
}

.legend-separator {
    color: var(--text-tertiary);
    margin: 0 0.25rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* Theme Filters */
.theme-filters-container {
    margin-bottom: 1rem;
}

.theme-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-filter {
    position: relative;
    min-width: 300px;
    flex: 1;
}

.search-filter-small {
    min-width: 200px;
    flex: 0 0 auto;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #3a3a4e;
    border-radius: 6px;
    background: var(--card-background);
    color: var(--text-color);
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.tag-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.filter-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.tag-filter-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-background);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-filter-btn:hover,
.tag-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.themes-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.themes-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.themes-per-page label {
    color: var(--text-secondary);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-background);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 2.5rem;
    text-align: center;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.no-themes-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-themes-message h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

.no-themes-message p {
    margin: 0 0 2rem 0;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #3a3a4e !important;
    border-radius: 6px;
    background: #1f2937 !important;  /* Force dark background */
    color: #f9fafb !important;       /* Force light text */
    font-size: 0.9rem;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.filter-select option {
    background: #1f2937 !important;  /* Dark background */
    color: #f9fafb !important;       /* Light text */
    padding: 0.5rem;
}

.filter-select option:hover,
.filter-select option:focus {
    background: #3b82f6 !important;  /* Blue background */
    color: #ffffff !important;       /* White text */
}

/* Theme Sets Grid */
.theme-sets-section {
    margin-bottom: 3rem;
}

.theme-sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.theme-set-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-set-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.set-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.set-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    flex: 1;
}

.set-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.set-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.theme-count {
    color: var(--primary-color);
    font-weight: 600;
}

.set-type {
    color: var(--text-secondary);
    background: var(--background-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Themes List */
.themes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.theme-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.theme-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.theme-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    flex: 1;
    padding-right: 1rem;
}

.theme-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Remove All button styling */
.remove-all-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px;
    background-color: var(--warning-color) !important;
    color: white !important;
    border: none;
    transition: all var(--transition-fast);
}

.remove-all-btn:hover {
    background-color: #f56956 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.difficulty-badge,
.set-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-badge {
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 1.5rem;
    line-height: 1;
}

.difficulty-badge.clickable {
    cursor: pointer;
}

.difficulty-badge.clickable:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    transition: transform 0.1s ease, filter 0.15s ease;
}

.set-badge.clickable,
.fundamentals-category-chip.clickable,
.mindfulness-category-chip.clickable,
.sub-set-chip.clickable {
    cursor: pointer;
}

.set-badge.clickable:hover,
.fundamentals-category-chip.clickable:hover,
.mindfulness-category-chip.clickable:hover,
.sub-set-chip.clickable:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    transition: transform 0.1s ease, filter 0.15s ease;
}

.set-badge {
    background: var(--background-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 1.5rem;
    line-height: 1;
}

/* Multi-set theme indicators */
.multi-set-badges {
    display: inline-flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.set-badge.current-set {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.set-badge.other-set {
    background: var(--background-tertiary);
    color: var(--text-tertiary);
    border-color: var(--border-color);
    opacity: 0.8;
}

.multi-set-indicator {
    font-size: 1rem;
    margin-left: 0.5rem;
    color: var(--accent-color);
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    line-height: 1;
}

/* Multi-set form styles */
.set-membership-info {
    margin-bottom: 0.5rem;
}

.multi-set-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
    padding: 0.5rem;
    background: var(--background-tertiary);
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

.form-help {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
    font-style: italic;
}

.theme-description {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.theme-tips,
.theme-tags {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.theme-tips strong,
.theme-tags strong {
    color: var(--text-primary);
}

.theme-tips ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0;
}

.theme-tips li {
    margin: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
}

.theme-tips li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.theme-equipment-tips {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid #3B82F6;
    border-radius: 0 4px 4px 0;
    color: var(--text-secondary);
}

.theme-equipment-tips strong {
    color: #3B82F6;
    font-weight: 600;
}

.season-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 179, 237, 0.15);
    color: #63B3ED;
    border: 1px solid rgba(99, 179, 237, 0.3);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-height: 1.5rem;
    line-height: 1;
}

.sub-set-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(147, 51, 234, 0.15);
    color: #a855f7;
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-height: 1.5rem;
    line-height: 1;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--card-background);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--background-color);
    border-color: var(--primary-color);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.icon {
    font-size: 1.1em;
    line-height: 1;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--card-background);
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 95vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-content-large {
    max-width: 800px;
    width: 95%;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
}

.form-section:last-of-type {
    margin-bottom: 1rem;
}

.section-header-small {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header-small h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header-small small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group-flex {
    margin-bottom: 0;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    margin-top: 1rem;
}

.info-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.info-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

.info-content strong {
    color: var(--text-primary);
}

/* Improved Checkboxes */
.season-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.checkbox-label:hover {
    background: var(--card-background);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 500;
}

.checkbox-label span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Universal select option fix for visibility */
select option {
    background: #1f2937 !important;  /* Dark background */
    color: #f9fafb !important;       /* Light text */
}

/* Light theme override */
[data-theme="light"] select option {
    background: #ffffff !important;  /* Light background */
    color: #1f2937 !important;       /* Dark text */
}

/* Additional aggressive option styling for stubborn browsers */
select option,
select option:not(:checked),
option,
option:not(:checked) {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
}

/* Force select styling */
select {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
}

/* WebKit specific fixes */
select option:checked {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    select option {
        background-color: #1f2937 !important;
        color: #f9fafb !important;
    }
    
    .form-group select, 
    .filter-select {
        background-color: #1f2937 !important;
        color: #f9fafb !important;
    }
}

/* Edge/Chrome specific fixes */
select::-ms-expand {
    background-color: #1f2937 !important;
}

/* Additional browser compatibility */
select, 
select * {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
}

select option,
select option * {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #3a3a4e !important;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #1f2937 !important;  /* Force dark background */
    color: #f9fafb !important;       /* Force light text */
    box-sizing: border-box;
}

/* Multi-select styling */
.form-group select[multiple] {
    min-height: 120px;
    padding: 0.5rem;
    border: 2px solid #3a3a4e !important;
    border-radius: 8px;
}

.form-group select[multiple] option {
    padding: 0.75rem;
    margin: 2px 0;
    border-radius: 4px;
    background: #1f2937 !important;
    color: #f9fafb !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-group select[multiple] option:checked {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
    font-weight: 600;
    position: relative;
}

.form-group select[multiple] option:checked::after {
    content: '✓';
    position: absolute;
    right: 0.5rem;
    font-weight: bold;
    font-size: 1.1em;
}

.form-group select[multiple] option:hover {
    background: #374151 !important;
    color: #f9fafb !important;
    transform: translateX(2px);
}

.form-group select[multiple] option:hover:checked {
    background: linear-gradient(135deg, #4f46e5, #3730a3) !important;
}

/* Multi-select helper text styling */
.multi-select-help {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    border-radius: 0 4px 4px 0;
}

/* Fundamentals themes styling */
.theme-card.fundamentals-theme {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    position: relative;
}

.theme-card.fundamentals-theme::before {
    content: '🎓 FUNDAMENTALS';
    position: absolute;
    top: -10px;
    right: 12px;
    background: linear-gradient(135deg, #3B82F6, #9333EA);
    color: white;
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-card.fundamentals-theme:hover {
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

/* Fundamentals category chip */
.fundamentals-category-chip {
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #3B82F6;
    white-space: nowrap;
}

/* Unassigned themes styling */
.theme-card[data-set="unassigned"] {
    background: rgba(156, 163, 175, 0.1);
    border: 1px dashed var(--text-tertiary);
    border-radius: var(--radius-lg);
    position: relative;
}

.theme-card[data-set="unassigned"]::before {
    content: '📝 UNASSIGNED';
    position: absolute;
    top: -8px;
    right: 8px;
    background: var(--text-tertiary);
    color: var(--bg-primary);
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.theme-card[data-set="unassigned"] .theme-header h5 {
    color: var(--text-tertiary);
}

.theme-card[data-set="unassigned"] .theme-description {
    font-style: italic;
    color: var(--text-tertiary);
}

.form-group select option {
    background: #1f2937 !important;  /* Dark background */
    color: #f9fafb !important;       /* Light text */
    padding: 0.5rem;
}

.form-group select option:hover,
.form-group select option:focus {
    background: #3b82f6 !important;  /* Blue background */
    color: #ffffff !important;       /* White text */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Loading Indicator */
.loading-indicator {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
}

.notification {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
}

.notification-success::before {
    background: #10b981;
}

.notification-error::before {
    background: #ef4444;
}

.notification-info::before {
    background: var(--primary-color);
}

.notification-success {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.notification-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.notification-info {
    color: #1e40af;
    background: #eff6ff;
    border-color: #93c5fd;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: currentColor;
    opacity: 0.7;
    padding: 0;
    margin-left: 1rem;
}

.notification-close:hover {
    opacity: 1;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .theme-manager-container {
        padding: 1rem;
    }
    
    .overview-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .theme-filters {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .filter-select {
        flex: 1;
        min-width: 100px;
    }
    
    .theme-sets-grid {
        grid-template-columns: 1fr;
    }
    
    .themes-list {
        grid-template-columns: 1fr;
    }
    
    .theme-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .theme-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-content-large {
        width: 98%;
        margin: 2% auto;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .season-checkboxes {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .theme-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .set-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
/* Mindfulness Theme Enhancements */
.mindfulness-section {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.mindfulness-category-chip {
    background: rgba(96, 165, 250, 0.15);
    color: var(--text-primary);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.mindfulness-guidance h6,
.mindfulness-timer h6,
.mindfulness-reflection h6 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mindfulness-guidance {
    margin-bottom: 1rem;
}

.mindfulness-guidance p {
    margin: 0;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

.mindfulness-timer {
    margin-bottom: 1rem;
}

.mindfulness-timer-btn {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mindfulness-timer-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.timer-display {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
    align-items: center;
    gap: 0.5rem;
}

.timer-time {
    font-family: "SF Mono", "Monaco", "Consolas", monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #22c55e;
}

.mindfulness-reflection {
    margin-bottom: 0;
}

.reflection-prompt {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid rgba(96, 165, 250, 0.5);
}

/* Personalized badge */
.personal-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 0.72rem;
    line-height: 1;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 10px;
    vertical-align: middle;
}

/* Generic Guidance (non-mindfulness sets) */
.guidance-section {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.theme-guidance {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.theme-prompt {
    margin: 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Link-style buttons for inline toggles */
.link-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0 0.25rem;
    margin-left: 0.25rem;
    font: inherit;
    text-decoration: underline;
}
.link-button:hover { opacity: 0.85; }

/* Equipment collapsible section */
.equipment-section {
    margin-top: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
}

.equipment-toggle-btn {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equipment-toggle-btn:before {
    content: '🔧';
    font-size: 1rem;
}

.equipment-toggle-btn:hover {
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.equipment-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.equipment-list {
    margin: 0.75rem 0 0 0;
    padding: 0;
    list-style: none;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.75rem;
}

.equipment-list li { 
    margin: 0.5rem 0;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.equipment-list li:last-child {
    border-bottom: none;
}

.equipment-list li:before {
    content: '•';
    color: #3B82F6;
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

/* Theme Card Tabs */
.theme-card-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
    background: var(--background-color);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.theme-tab-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
    min-height: 2rem;
}

.theme-tab-btn:hover:not(.active) {
    background: var(--card-background);
    color: var(--text-primary);
}

.theme-tab-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* Tab Content */
.theme-card-content {
    min-height: 120px;
}

.theme-tab-pane {
    display: none;
    animation: fadeIn 0.2s ease;
}

.theme-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab-specific content styling */
.equipment-content {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
}

.equipment-content h6 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equipment-content .equipment-list {
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
}

.mindfulness-content,
.guidance-content {
    padding: 1rem;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
}

.mindfulness-content h6,
.guidance-content h6 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mindfulness-content > div,
.guidance-content > div {
    margin-bottom: 1rem;
}

.mindfulness-content > div:last-child,
.guidance-content > div:last-child {
    margin-bottom: 0;
}

.examples-content {
    padding: 1rem;
    background: rgba(99, 179, 237, 0.05);
    border: 1px solid rgba(99, 179, 237, 0.15);
    border-radius: 8px;
}

.examples-content h6 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.example-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.example-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive tabs */
@media (max-width: 480px) {
    .theme-card-tabs {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .theme-tab-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        min-width: 0;
        flex: 1 1 auto;
    }
    
    .example-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .example-image {
        height: 60px;
    }
}
