/**
 * Universal Items Component Styles
 * Provides consistent styling for inventory item displays across all pages
 */

/* Component Container */
.wowplatter-items-component {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

/* Filter Styles */
.items-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Active Filters */
.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.filter-bubble {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.filter-bubble .remove-filter {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.filter-bubble .remove-filter:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Vinyl Card Styles - Perfect Card View */
.vinyl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.vinyl-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vinyl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vinyl-cover {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.vinyl-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vinyl-card:hover .vinyl-cover img {
    transform: scale(1.05);
}

.no-image-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 48px;
    font-weight: 300;
}

.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.vinyl-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vinyl-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vinyl-title a {
    color: #333;
    text-decoration: none;
}

.vinyl-title a:hover {
    color: #667eea;
}

.vinyl-artist {
    color: #667eea;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 0.95rem;
}

.vinyl-artist a {
    color: #667eea;
    text-decoration: none;
}

.vinyl-artist a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.vinyl-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 10px 0;
    flex: 1;
}

.vinyl-meta {
    font-size: 0.8rem;
    color: #666;
}

.vinyl-meta div {
    margin-bottom: 3px;
}

.vinyl-meta strong {
    color: #333;
}

.vinyl-meta a {
    color: #667eea;
    text-decoration: none;
}

.vinyl-meta a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.condition-badge {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.wantlist-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.wantlist-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.wantlist-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.wantlist-btn i {
    font-size: 12px;
}

/* Compact Wantlist Button for Row View */
.btn-add-to-wantlist.btn-compact {
    background: #007cba;
    border: none;
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    box-shadow: 0 1px 3px rgba(0, 124, 186, 0.3);
}

.btn-add-to-wantlist.btn-compact:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.4);
}

.btn-add-to-wantlist.btn-compact:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 124, 186, 0.3);
}

.btn-add-to-wantlist.btn-compact i {
    font-size: 10px;
    margin: 0;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .vinyl-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .vinyl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .vinyl-grid {
        grid-template-columns: 1fr;
    }
}

/* Info Panel Styles */
.wowplatter-info-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin: 0 -20px 30px -20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: calc(100% + 40px);
    box-sizing: border-box;
}

/* Artist-specific styles moved to artist.css for better separation of concerns */

/* Label Info Panel Styles */
.label-info-panel .label-header {
    text-align: center;
    margin-bottom: 30px;
}

.label-info-panel .label-header h1 {
    font-size: 3em;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.label-info-panel .label-meta {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0 0 20px 0;
    font-style: italic;
}

.label-info-panel .label-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0.95;
    text-align: center;
}

.label-info-panel .label-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.label-info-panel .label-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.label-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.meta-item i {
    font-size: 1.1em;
}

/* Filter Sections */
.shop-filters-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.filter-dropdowns select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 140px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.clear-filters-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.clear-filters-btn:hover {
    background: #c82333;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.sort-controls select {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    background: white;
    height: 32px;
    min-width: 100px;
}

.sort-controls select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.search-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 20px;
}

.filter-bubble {
    background: #007cba;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-bubble .remove-filter {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-bubble .remove-filter:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Entity Filter Buttons */
.label-entity-filters {
    margin-bottom: 20px;
}

.entity-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entity-filter-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.entity-filter-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.entity-filter-btn.active {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

/* View Controls */
.view-controls-section,
.items-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.view-toggle {
    display: flex;
    gap: 0;
}

.view-toggle-buttons {
    display: flex;
    gap: 5px;
}

/* Items component view buttons - higher specificity to override style.css */
.wowplatter-items-component .view-btn,
.results-container .view-btn {
    background: white !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
    padding: 10px 16px !important;
    cursor: pointer;
    font-size: 14px !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    transition: all 0.2s !important;
    border-radius: 0 !important;
    font-weight: normal !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.wowplatter-items-component .view-btn:first-child,
.results-container .view-btn:first-child {
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
}

.wowplatter-items-component .view-btn:last-child,
.results-container .view-btn:last-child {
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

.wowplatter-items-component .view-btn:not(:first-child),
.results-container .view-btn:not(:first-child) {
    border-left: none !important;
}

.wowplatter-items-component .view-btn:hover,
.results-container .view-btn:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    transform: none !important;
}

.wowplatter-items-component .view-btn.active,
.results-container .view-btn.active {
    background: #007cba !important;
    border-color: #007cba !important;
    color: white !important;
    box-shadow: none !important;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.per-page-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.results-info {
    font-size: 14px;
    color: #6c757d;
}

/* Results Container */
.results-container,
#wowplatter-results {
    position: relative;
    width: 100% !important;
    max-width: none !important;
}

/* View Mode Display Control */
.results-container .view-cards,
.results-container .view-rows,
.results-container .view-text,
.results-container .view-wall,
#wowplatter-results .view-cards,
#wowplatter-results .view-rows,
#wowplatter-results .view-text,
#wowplatter-results .view-wall {
    display: none;
    width: 100%;
}

/* Show cards view by default */
.results-container .view-cards,
#wowplatter-results .view-cards {
    display: block;
}

/* View Mode Display Controls */
.results-container.mode-cards .view-cards,
#wowplatter-results.mode-cards .view-cards {
    display: block;
}

.results-container.mode-cards .view-rows,
.results-container.mode-cards .view-text,
.results-container.mode-cards .view-wall,
#wowplatter-results.mode-cards .view-rows,
#wowplatter-results.mode-cards .view-text,
#wowplatter-results.mode-cards .view-wall {
    display: none;
}

.results-container.mode-rows .view-rows,
#wowplatter-results.mode-rows .view-rows {
    display: block;
}

.results-container.mode-rows .view-cards,
.results-container.mode-rows .view-text,
.results-container.mode-rows .view-wall,
#wowplatter-results.mode-rows .view-cards,
#wowplatter-results.mode-rows .view-text,
#wowplatter-results.mode-rows .view-wall {
    display: none;
}

.results-container.mode-text .view-text,
#wowplatter-results.mode-text .view-text {
    display: block;
}

.results-container.mode-text .view-cards,
.results-container.mode-text .view-rows,
.results-container.mode-text .view-wall,
#wowplatter-results.mode-text .view-cards,
#wowplatter-results.mode-text .view-rows,
#wowplatter-results.mode-text .view-wall {
    display: none;
}

.results-container.mode-wall .view-wall,
#wowplatter-results.mode-wall .view-wall {
    display: block;
}

.results-container.mode-wall .view-cards,
.results-container.mode-wall .view-rows,
.results-container.mode-wall .view-text,
#wowplatter-results.mode-wall .view-cards,
#wowplatter-results.mode-wall .view-rows,
#wowplatter-results.mode-wall .view-text {
    display: none;
}

/* Card View Styles - Updated to match style.css */
.vinyl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
    padding: 0;
    width: 100% !important;
    max-width: none !important;
}

/* Alternative grid for auto-fill layout */
.vinyl-grid.auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.vinyl-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e0e0e0;
}

.vinyl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.vinyl-cover {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.vinyl-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vinyl-card:hover .vinyl-cover img {
    transform: scale(1.05);
}

.vinyl-cover .no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #8e9aaf;
    font-weight: 300;
}

.price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.vinyl-info {
    padding: 20px;
}

.vinyl-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2c3e50;
    line-height: 1.3;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vinyl-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vinyl-title a:hover {
    color: #007cba;
}

.vinyl-artist {
    font-size: 15px;
    color: #6c757d;
    margin: 0 0 16px 0;
    font-weight: 500;
    min-height: 20px;
}

.vinyl-artist a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vinyl-artist a:hover {
    color: #007cba;
    text-decoration: underline;
}

.vinyl-details {
    margin-bottom: 16px;
}

.vinyl-meta {
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 12px;
}

.vinyl-meta div {
    margin-bottom: 4px;
}

.vinyl-meta strong {
    color: #343a40;
    font-weight: 600;
    min-width: 60px;
    display: inline-block;
}

.vinyl-meta a {
    color: #007cba;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vinyl-meta a:hover {
    color: #005a87;
    text-decoration: underline;
}

.condition-badge {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #2c3e50;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.wantlist-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    background: #28a745;
    color: white;
    flex: 1;
}

.wantlist-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Row View Styles */
.table-container {
    overflow-x: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.vinyl-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.vinyl-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
    white-space: nowrap;
}

/* All table headers with blue-purple gradient */
.vinyl-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

/* Sortable table headers */
.vinyl-table th.header-sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 25px;
}

.vinyl-table th.header-sortable:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Non-sortable headers hover effect */
.vinyl-table th:not(.header-sortable):hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Sort indicators */
.sort-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.7;
}

.vinyl-table th.header-sortable.sort-asc .sort-indicator::after {
    content: '▲';
    opacity: 1;
}

.vinyl-table th.header-sortable.sort-desc .sort-indicator::after {
    content: '▼';
    opacity: 1;
}

.vinyl-table th.header-sortable:not(.sort-asc):not(.sort-desc) .sort-indicator::after {
    content: '⇅';
    opacity: 0.5;
}

.vinyl-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    vertical-align: middle;
}

.vinyl-table tr:hover {
    background: #f8f9fa;
}

.vinyl-table .thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.vinyl-table .no-image-thumb {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #adb5bd;
    font-size: 20px;
}

.vinyl-table .title-cell a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
}

.vinyl-table .title-cell a:hover {
    color: #007cba;
    text-decoration: underline;
}

.vinyl-table .artist-cell a,
.vinyl-table .genre-cell a,
.vinyl-table .style-cell a,
.vinyl-table .label-cell a {
    color: #007cba;
    text-decoration: none;
}

.vinyl-table .artist-cell a:hover,
.vinyl-table .genre-cell a:hover,
.vinyl-table .style-cell a:hover,
.vinyl-table .label-cell a:hover {
    text-decoration: underline;
}

.vinyl-table .price-cell {
    font-weight: 600;
    color: #28a745;
}

.vinyl-table .action-cell .wantlist-btn {
    width: auto;
    padding: 6px 12px;
    font-size: 12px;
}

/* Text view specific styles for compact layout */
.view-text .wantlist-btn {
    padding: 3px 6px;
    font-size: 0.65rem;
    min-width: auto;
}

.view-text .wantlist-btn i {
    font-size: 0.6rem;
}

/* Text View Styles - Compact table format for purists */
.vinyl-text-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 30px; /* Double the font size as requested */
    line-height: 1.2; /* Tighter line height */
}

.vinyl-text-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 6px 8px; /* Reduced padding for tighter spacing */
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 28px; /* Double the header font size */
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vinyl-text-table th:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.vinyl-text-table th.header-sortable {
    user-select: none;
}

.vinyl-text-table th .sort-indicator {
    margin-left: 5px;
    opacity: 0.7;
}

.vinyl-text-table th.sorted-asc .sort-indicator:after {
    content: '▲';
}

.vinyl-text-table th.sorted-desc .sort-indicator:after {
    content: '▼';
}

.vinyl-text-table td {
    padding: 4px 8px; /* Reduced padding for tighter rows */
    border-bottom: 1px solid #e9ecef;
    font-size: 30px; /* Double the font size as requested */
    vertical-align: top;
    line-height: 1.2; /* Tighter line height */
}

.vinyl-text-table tr:hover {
    background: #f8f9fa;
}

/* Text view specific cell styles */
.vinyl-text-table .text-title-cell a,
.vinyl-text-table .title-link {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
}

.vinyl-text-table .text-title-cell a:hover,
.vinyl-text-table .title-link:hover {
    color: #007cba;
    text-decoration: underline;
}

.vinyl-text-table .text-artist-cell a,
.vinyl-text-table .text-genre-cell a,
.vinyl-text-table .text-style-cell a,
.vinyl-text-table .text-label-cell a,
.vinyl-text-table .text-year-cell a,
.vinyl-text-table .text-country-cell a,
.vinyl-text-table .artist-link,
.vinyl-text-table .genre-link,
.vinyl-text-table .style-link,
.vinyl-text-table .label-link,
.vinyl-text-table .year-link,
.vinyl-text-table .country-link {
    color: #007cba;
    text-decoration: none;
}

.vinyl-text-table .text-artist-cell a:hover,
.vinyl-text-table .text-genre-cell a:hover,
.vinyl-text-table .text-style-cell a:hover,
.vinyl-text-table .text-label-cell a:hover,
.vinyl-text-table .text-year-cell a:hover,
.vinyl-text-table .text-country-cell a:hover,
.vinyl-text-table .artist-link:hover,
.vinyl-text-table .genre-link:hover,
.vinyl-text-table .style-link:hover,
.vinyl-text-table .label-link:hover,
.vinyl-text-table .year-link:hover,
.vinyl-text-table .country-link:hover {
    text-decoration: underline;
}

.vinyl-text-table .text-price-cell .price {
    font-weight: 600;
    color: #28a745;
}

.vinyl-text-table .text-actions-cell {
    width: 60px;
    text-align: center;
}

.vinyl-text-table .btn-text-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vinyl-text-table .btn-text-compact:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.vinyl-text-table .btn-text-compact:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.vinyl-text-table .text-comment-cell {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ensure text rows are tightly packed */
.vinyl-text-table .text-row {
    height: auto;
    min-height: 0;
}

/* Legacy compatibility for existing text view styles */
.vinyl-text-table .text-title a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
}

.vinyl-text-table .text-title a:hover {
    color: #007cba;
    text-decoration: underline;
}

.vinyl-text-table .text-artist a,
.vinyl-text-table .text-genre a,
.vinyl-text-table .text-style a,
.vinyl-text-table .text-label a {
    color: #007cba;
    text-decoration: none;
}

.vinyl-text-table .text-artist a:hover,
.vinyl-text-table .text-genre a:hover,
.vinyl-text-table .text-style a:hover,
.vinyl-text-table .text-label a:hover {
    text-decoration: underline;
}

.vinyl-text-table .text-price {
    font-weight: 600;
    color: #28a745;
}

.vinyl-text-table .text-action .wantlist-btn {
    width: auto;
    padding: 4px 8px;
    font-size: 11px;
}

.vinyl-text-table .text-comment {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results h3 {
    margin: 0 0 10px 0;
    color: #495057;
}

.no-results p {
    margin: 0;
    font-size: 16px;
}

/* Vinyl Card Styles (from shop.css) */
.vinyl-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vinyl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vinyl-cover {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.vinyl-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vinyl-card:hover .vinyl-cover img {
    transform: scale(1.05);
}

.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.vinyl-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vinyl-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vinyl-artist {
    color: #667eea;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 0.95rem;
}

.vinyl-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 10px 0;
    flex: 1;
}

.vinyl-meta {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vinyl-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .vinyl-grid.auto-fill {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 900px) {
    .vinyl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wowplatter-items-component {
        padding: 15px;
    }
    
    .wowplatter-info-panel {
        margin: 0 -10px 20px -10px;
        padding: 20px;
        width: calc(100% + 20px);
        border-radius: 8px;
    }
    
    .items-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .items-controls .view-toggle {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .results-container {
        margin-top: 15px;
    }
    
    .view-controls-section {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-dropdowns {
        flex-direction: column;
    }
    
    .filter-dropdowns select {
        min-width: auto;
    }
    
    .vinyl-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .view-toggle-buttons {
        justify-content: center;
    }
    
    .role-filter-buttons,
    .entity-filter-buttons {
        justify-content: center;
    }
    
    .card-details {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .vinyl-grid {
        grid-template-columns: 1fr;
    }
    
    .view-btn {
        flex: 1;
        justify-content: center;
    }
    
    .card-detail {
        flex-direction: column;
        gap: 2px;
    }
    
    .card-detail-value {
        text-align: left;
    }
}

/* Filter State Classes */
.vinyl-card.filtered-out,
.vinyl-table tr.filtered-out,
.vinyl-text-table tr.filtered-out {
    display: none !important;
}

/* Loading State */
.wowplatter-items-component.loading {
    opacity: 0.6;
    pointer-events: none;
}

.wowplatter-items-component.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

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

/* Test Page Specific Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    line-height: 1.6;
}

.wowplatter-main-content {
    min-height: calc(100vh - 200px);
}

.wowplatter-page-header {
    background: #ffffff;
    border-bottom: 1px solid #e1e5e9;
    padding: 40px 0;
    margin-bottom: 30px;
}

.wowplatter-page-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wowplatter-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.wowplatter-page-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0;
}

.wowplatter-page-meta {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #ecf0f1;
}

.wowplatter-page-meta-item {
    display: inline-block;
    margin-right: 30px;
    color: #34495e;
    font-size: 0.95rem;
}

.wowplatter-page-meta-item i {
    margin-right: 8px;
    color: #3498db;
}

.wowplatter-test-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.test-navigation {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border: 1px solid #e1e5e9;
}

.test-navigation h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.test-navigation a {
    display: inline-block;
    padding: 12px 24px;
    margin: 8px 8px 8px 0;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.test-navigation a:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.test-navigation a.active {
    background: #27ae60;
}

.test-navigation a.active:hover {
    background: #229954;
}

.test-description {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border: 1px solid #e1e5e9;
}

.test-description h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.test-description ul {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.test-description li {
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.test-description li:last-child {
    border-bottom: none;
}

.test-description strong {
    color: #2c3e50;
    font-weight: 600;
}

.wowplatter-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.wowplatter-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.wowplatter-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.wowplatter-footer-section h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.wowplatter-footer-section p,
.wowplatter-footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.6;
}

.wowplatter-footer-section a:hover {
    color: #3498db;
}

.wowplatter-footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Artist-specific responsive styles moved to artist.css */

/* Chatbot placeholder styles */
.wowplatter-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.wowplatter-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Wall View Styles */
.results-container.mode-wall .view-wall,
#wowplatter-results.mode-wall .view-wall {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important; /* 5 columns filling width */
    gap: 0 !important; /* No gaps between images */
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.wall-item {
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important; /* Creates square aspect ratio */
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, z-index 0.2s ease;
    position: relative !important;
    text-decoration: none !important;
    box-sizing: border-box;
}

.wall-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Wall View Options */
.wall-view-options {
    align-items: center;
    gap: 20px;
    margin-left: 20px;
    padding: 10px 0;
}

.wall-overlay-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.wall-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    user-select: none;
}

.wall-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.wall-checkbox .checkmark {
    display: none;
}

/* Wall Overlays */
.wall-price-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    z-index: 5;
    pointer-events: none;
}

.wall-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 8px 8px;
    z-index: 5;
    pointer-events: none;
}

.wall-title-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Show overlays when checkboxes are checked */
.wall-overlays-enabled .wall-price-overlay.show-price {
    display: block !important;
}

.wall-overlays-enabled .wall-title-overlay.show-title {
    display: block !important;
}

/* Wall Load More Button */
.wall-load-more-btn {
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.wall-load-more-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.wall-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.wall-load-more-btn:disabled:hover {
    background: #ccc;
    transform: none;
}

.wall-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Responsive wall view - maintain 5 columns but adjust for smaller screens */
@media (max-width: 768px) {
    .view-wall {
        grid-template-columns: repeat(5, 1fr); /* Keep 5 columns on mobile */
    }
}

@media (max-width: 480px) {
    .view-wall {
        grid-template-columns: repeat(5, 1fr); /* Keep 5 columns even on small screens */
    }
}

/* Enhanced Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 20px;
}

.compact-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.per-page-buttons {
    display: flex;
    gap: 5px;
}

.per-page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.per-page-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.per-page-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn, .page-num {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.nav-btn:hover, .page-num:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    text-decoration: none;
}

.page-num.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.results-info {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .compact-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .per-page-buttons {
        justify-content: center;
    }
    
    .pagination-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.wowplatter-chatbot-toggle:hover {
    background: #2980b9;
    transform: scale(1.1);
}

/* Additive Filter Styles */
.additive-filters {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.active-filters-sticky {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.filter-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.filter-tag .remove-filter {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.filter-tag .remove-filter:hover {
    background: rgba(255, 255, 255, 0.2);
}

.clear-all-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-all-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.filter-controls {
    background: white;
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.filter-controls .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.filter-controls .filter-row:last-child {
    margin-bottom: 0;
}

.filter-controls .filter-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 120px;
}

.filter-controls .filter-group label {
    font-weight: 500;
    color: #495057;
    font-size: 12px;
    margin: 0;
}

.filter-controls .filter-select {
    padding: 6px 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    transition: all 0.2s ease;
    width: 100%;
    height: 32px;
}

.filter-controls .filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-controls .filter-select:hover {
    border-color: #adb5bd;
}

/* Responsive design for filters */
@media (max-width: 768px) {
    .filter-controls .filter-group {
        min-width: 100px;
    }
    
    .additive-filters {
        padding: 15px;
    }
    
    .filter-tags {
        gap: 6px;
    }
    
    .filter-tag {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .filter-controls .filter-group {
        min-width: 80px;
    }
    
    .filter-tags {
        justify-content: center;
    }
}

/* Multi-Select Dropdown Styles */
.multi-select-group {
    position: relative;
}

.multi-select-dropdown {
    position: relative;
    min-width: 200px;
}

.multi-select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    user-select: none;
}

.multi-select-header:hover {
    border-color: #adb5bd;
}

.multi-select-header.active {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.multi-select-header .selected-text {
    flex: 1;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-select-header i {
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.multi-select-header.active i {
    transform: rotate(180deg);
}

.multi-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.multi-select-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
    user-select: none;
}

.multi-select-option:last-child {
    border-bottom: none;
}

.multi-select-option:hover {
    background-color: #f8f9fa;
}

.multi-select-option input[type="checkbox"] {
    margin: 0;
    margin-right: 8px;
    cursor: pointer;
}

.multi-select-option .checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #ced4da;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.multi-select-option input[type="checkbox"]:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.multi-select-option input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.multi-select-option input[type="checkbox"] {
    display: none;
}

/* Responsive multi-select */
@media (max-width: 768px) {
    .multi-select-dropdown {
        min-width: 150px;
    }
    
    .multi-select-header {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .multi-select-option {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .multi-select-options {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .multi-select-dropdown {
        min-width: 120px;
    }
    
    .multi-select-header {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .multi-select-option {
        padding: 5px 8px;
        font-size: 12px;
    }
}