/* ==========================================================================
   RUNLABS Digital Signage - Frontend Styles v1.0.0
   ========================================================================== */

/* Variables */
:root {
    --rds-primary: #e74c3c;
    --rds-secondary: #34495e;
    --rds-success: #27ae60;
    --rds-warning: #f39c12;
    --rds-danger: #e74c3c;
    --rds-light: #f8f9fa;
    --rds-dark: #2c3e50;
    --rds-border: #dce0e3;
    --rds-shadow: 0 2px 15px rgba(0,0,0,0.08);
    --rds-radius: 12px;
}

/* ==========================================================================
   Configuration Container
   ========================================================================== */

.rds-config-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.rds-config-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--rds-border);
}

.rds-config-header .rds-header-left h1 {
    font-size: 1.8em;
    color: var(--rds-dark);
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.rds-config-header .rds-header-left h1 .dashicons {
    font-size: 1.2em;
    width: 1.2em;
    height: 1.2em;
    color: var(--rds-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rds-subtitle {
    color: #666;
    margin: 0;
    font-size: 1em;
}

/* Notification */
.rds-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.rds-notification.success {
    background: var(--rds-success);
    color: white;
}

.rds-notification.error {
    background: var(--rds-danger);
    color: white;
}

/* Quick Links */
.rds-quick-links {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    margin-bottom: 30px;
}

.rds-link-card {
    background: white;
    border-radius: var(--rds-radius);
    padding: 20px;
    box-shadow: var(--rds-shadow);
    display: flex;
    gap: 15px;
    align-items: center;
}

.rds-link-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--rds-primary), #c0392b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.rds-link-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.rds-link-content h3 {
    margin: 0 0 5px;
    font-size: 1.1em;
    color: var(--rds-dark);
}

.rds-link-content p {
    margin: 0 0 10px;
    color: #666;
    font-size: 0.9em;
}

.rds-link-url {
    display: flex;
    gap: 8px;
}

.rds-link-url input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--rds-border);
    border-radius: 6px;
    font-size: 0.9em;
    background: var(--rds-light);
    color: var(--rds-dark);
}

.rds-link-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px 20px;
}

/* Buttons */
.rds-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rds-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

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

.rds-btn-primary:hover {
    background: #c0392b;
    color: white;
}

.rds-btn-secondary {
    background: var(--rds-light);
    color: var(--rds-dark);
    border: 1px solid var(--rds-border);
}

.rds-btn-secondary:hover {
    background: #e9ecef;
    color: var(--rds-dark);
}

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

.rds-btn-success:hover {
    background: #219a52;
    color: white;
}

.rds-btn-icon {
    padding: 8px;
    background: var(--rds-light);
    border: 1px solid var(--rds-border);
}

.rds-btn-large {
    padding: 14px 24px;
    font-size: 1em;
}

/* Config Sections */
.rds-config-section {
    background: white;
    border-radius: var(--rds-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--rds-shadow);
}

.rds-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--rds-border);
}

.rds-section-number {
    width: 32px;
    height: 32px;
    background: var(--rds-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95em;
}

.rds-section-header h2 {
    margin: 0;
    font-size: 1.25em;
    color: var(--rds-dark);
}

.rds-section-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: #e3f2fd;
    border-radius: 8px;
    color: #1565c0;
    font-size: 0.9em;
    margin-bottom: 20px;
}

/* Form Grid */
.rds-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rds-col-2 {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .rds-col-2 {
        grid-column: span 1;
    }
}

/* Form Groups */
.rds-form-group {
    margin-bottom: 0;
}

.rds-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--rds-dark);
    font-size: 0.95em;
}

.rds-form-group input[type="text"],
.rds-form-group input[type="number"],
.rds-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--rds-border);
    border-radius: 8px;
    font-size: 0.95em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rds-form-group input:focus,
.rds-form-group select:focus {
    outline: none;
    border-color: var(--rds-primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.rds-form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.85em;
}

/* Range slider */
input[type="range"] {
    width: calc(100% - 60px);
    height: 6px;
    background: var(--rds-border);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--rds-primary);
    border-radius: 50%;
    cursor: pointer;
}

.rds-range-value {
    display: inline-block;
    width: 50px;
    text-align: center;
    font-weight: 600;
    color: var(--rds-primary);
}

/* Mode Selector */
.rds-mode-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.rds-mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid var(--rds-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.rds-mode-option:hover {
    border-color: var(--rds-primary);
    background: #fff5f5;
}

.rds-mode-option.active {
    border-color: var(--rds-primary);
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
}

.rds-mode-option input {
    display: none;
}

.rds-mode-icon {
    width: 50px;
    height: 50px;
    background: var(--rds-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.rds-mode-option.active .rds-mode-icon {
    background: var(--rds-primary);
    color: white;
}

.rds-mode-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.rds-mode-label {
    font-size: 0.9em;
    text-align: center;
    color: var(--rds-dark);
    font-weight: 500;
}

/* Category Selector */
.rds-category-selector {
    border: 1px solid var(--rds-border);
    border-radius: 8px;
    overflow: hidden;
}

.rds-category-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--rds-border);
    background: white;
    transition: background 0.2s;
}

.rds-category-item:last-child {
    border-bottom: none;
}

.rds-category-item.selected {
    background: #f0fff4;
}

.rds-drag-handle {
    cursor: grab;
    padding: 5px;
    margin-right: 10px;
    color: #999;
}

.rds-drag-handle:active {
    cursor: grabbing;
}

.rds-category-item label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.rds-category-name {
    font-weight: 500;
}

.rds-category-count {
    font-size: 0.85em;
    color: #888;
    background: var(--rds-light);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Toggle Grid */
.rds-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.rds-toggle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--rds-light);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.rds-toggle-item:hover {
    background: #e9ecef;
}

.rds-toggle-item input {
    display: none;
}

.rds-toggle-switch {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.rds-toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.rds-toggle-item input:checked + .rds-toggle-switch {
    background: var(--rds-success);
}

.rds-toggle-item input:checked + .rds-toggle-switch::after {
    transform: translateX(20px);
}

.rds-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    color: var(--rds-dark);
}

.rds-toggle-label .dashicons {
    color: #888;
}

.rds-toggle-large {
    padding: 15px 20px;
    background: white;
    border: 2px solid var(--rds-border);
    border-radius: 10px;
}

/* Theme Selector */
.rds-theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.rds-theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--rds-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.rds-theme-option:hover {
    border-color: var(--rds-primary);
}

.rds-theme-option.active {
    border-color: var(--rds-primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.rds-theme-option input {
    display: none;
}

.rds-theme-preview {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

.rds-theme-dark .rds-theme-preview { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.rds-theme-light .rds-theme-preview { background: linear-gradient(135deg, #f5f5f5, #ffffff); }
.rds-theme-warm .rds-theme-preview { background: linear-gradient(135deg, #2d1f1a, #3d2a22); }
.rds-theme-minimal .rds-theme-preview { background: #ffffff; }
.rds-theme-neon .rds-theme-preview { 
    background: #0a0a0a; 
    box-shadow: inset 0 0 10px var(--rds-primary);
}

.rds-theme-label {
    font-size: 0.85em;
    color: var(--rds-dark);
    font-weight: 500;
}

/* Color Picker */
.rds-color-picker {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rds-color-picker input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid var(--rds-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
    background: #f0f0f0;
}

.rds-color-picker input[type="color"]:hover {
    border-color: var(--rds-primary);
}

.rds-color-picker input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--rds-border);
    border-radius: 8px;
    font-family: monospace;
}

/* Slider de vitesse */
.rds-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rds-slider-container input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--rds-border);
    outline: none;
    -webkit-appearance: none;
}

.rds-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rds-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.rds-slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rds-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.rds-slider-value {
    min-width: 45px;
    padding: 6px 12px;
    background: var(--rds-light);
    border-radius: 6px;
    font-weight: 600;
    color: var(--rds-primary);
    text-align: center;
}

.rds-form-hint {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 0.85em;
}

.rds-toggle-direction {
    margin-top: 5px;
}

.rds-direction-label {
    font-weight: 500;
}

/* Promo Manager */
.rds-promo-manager {
    margin-top: 20px;
}

.rds-promo-manager h4 {
    margin: 0 0 15px;
    color: var(--rds-dark);
}

.rds-promo-list {
    border: 1px solid var(--rds-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.rds-promo-empty {
    padding: 30px;
    text-align: center;
    color: #888;
}

.rds-promo-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--rds-border);
    background: white;
}

.rds-promo-item:last-child {
    border-bottom: none;
}

.rds-promo-type {
    font-size: 0.75em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 12px;
}

.rds-promo-type-info { background: #e3f2fd; color: #1565c0; }
.rds-promo-type-promo { background: #fff3e0; color: #ef6c00; }
.rds-promo-type-special { background: #fce4ec; color: #c2185b; }
.rds-promo-type-event { background: #e8f5e9; color: #2e7d32; }

.rds-promo-message {
    flex: 1;
    font-size: 0.95em;
}

.rds-promo-status {
    margin: 0 15px;
    font-size: 1.2em;
    color: #ccc;
}

.rds-promo-status.active {
    color: var(--rds-success);
}

.rds-promo-edit,
.rds-promo-delete {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.rds-promo-edit:hover { color: var(--rds-primary); }
.rds-promo-delete:hover { color: var(--rds-danger); }

/* Config Actions */
.rds-config-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 30px 0;
}

/* Modal */
.rds-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.rds-modal-content {
    background: white;
    border-radius: var(--rds-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.rds-modal-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.rds-modal-close {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0;
}

.rds-modal-close:hover {
    color: var(--rds-danger);
}

.rds-modal form {
    padding: 25px;
}

.rds-modal .rds-form-group {
    margin-bottom: 20px;
}

.rds-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--rds-border);
    margin-top: 10px;
}

/* v1.1.1 - Fix toggle dans modal */
.rds-modal .rds-toggle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 15px;
    background: var(--rds-light);
    border-radius: 8px;
    border: 1px solid var(--rds-border);
}

.rds-modal .rds-toggle-item input {
    display: none;
}

.rds-modal .rds-toggle-switch {
    width: 48px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
    order: 1;
}

.rds-modal .rds-toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rds-modal .rds-toggle-item input:checked + .rds-toggle-switch {
    background: var(--rds-success);
}

.rds-modal .rds-toggle-item input:checked + .rds-toggle-switch::after {
    transform: translateX(22px);
}

.rds-modal .rds-toggle-label {
    font-size: 1em;
    font-weight: 500;
    color: var(--rds-dark);
    order: 2;
}

/* Login Required */
.rds-login-required {
    text-align: center;
    padding: 60px 20px;
    background: var(--rds-light);
    border-radius: var(--rds-radius);
    color: var(--rds-dark);
    font-size: 1.1em;
}

/* Spin animation */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .rds-config-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .rds-quick-links {
        grid-template-columns: 1fr;
    }
    
    .rds-link-actions {
        justify-content: center;
    }
    
    .rds-mode-selector {
        grid-template-columns: 1fr 1fr;
    }
    
    .rds-toggle-grid {
        grid-template-columns: 1fr;
    }
    
    .rds-config-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rds-config-actions .rds-btn {
        justify-content: center;
    }
}
px 6px; border-radius: 8px; font-size: 0.75em; }
.rds-playlist-tab.active .rds-playlist-item-count { background: rgba(255,255,255,0.3); }

.rds-playlist-content { padding: 15px; min-height: 250px; }
.rds-playlist-panel { display: none; }
.rds-playlist-panel.active { display: block; }

.rds-playlist-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.rds-playlist-name-input { flex: 1; padding: 8px 12px; border: 1px solid var(--rds-border); border-radius: 6px; font-size: 0.95em; font-weight: 500; }
.rds-playlist-actions { display: flex; gap: 8px; }

.active-btn { background: #155724 !important; }
.rds-activate-playlist:not(.active-btn) { background: #6c757d !important; border-color: #6c757d !important; }

.rds-playlist-dropzone { min-height: 200px; border: 2px dashed var(--rds-border); border-radius: 8px; padding: 10px; transition: all 0.2s; }
.rds-playlist-dropzone.rds-dropzone-hover { border-color: var(--rds-primary); background: rgba(231, 76, 60, 0.05); }

.rds-dropzone-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 180px; color: #888; }
.rds-dropzone-placeholder .dashicons { font-size: 40px; width: 40px; height: 40px; margin-bottom: 10px; }

.rds-playlist-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--rds-light); border-radius: 6px; margin-bottom: 8px; transition: all 0.2s; }
.rds-playlist-item:hover { background: #e9ecef; }

.rds-drag-handle { cursor: grab; color: #999; padding: 2px; }
.rds-drag-handle:active { cursor: grabbing; }

.rds-item-info { flex: 1; min-width: 0; }
.rds-item-info .rds-item-title { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rds-item-info .rds-item-category { display: block; font-size: 0.8em; color: #888; }

.rds-remove-item { background: none; border: none; color: #999; cursor: pointer; padding: 4px; transition: color 0.2s; }
.rds-remove-item:hover { color: var(--rds-danger); }

.rds-sortable-placeholder { height: 50px; background: rgba(231, 76, 60, 0.1); border: 2px dashed var(--rds-primary); border-radius: 6px; margin-bottom: 8px; }
.rds-dragging { background: white !important; box-shadow: 0 5px 20px rgba(0,0,0,0.2); border-radius: 6px; padding: 10px; }
.rds-playlist-info { padding: 20px; text-align: center; color: #666; }

.rds-section-hint { display: flex; align-items: center; gap: 8px; background: #e3f2fd; padding: 10px 15px; border-radius: 6px; margin-bottom: 15px; font-size: 0.9em; color: #1565c0; }
.rds-section-hint .dashicons { font-size: 18px; }

@media (max-width: 900px) {
    .rds-playlist-container { grid-template-columns: 1fr; }
    .rds-playlist-source { max-height: 300px; }
}
/* ==========================================================================
   PLAYLIST SYSTEM v1.1.9 - Item Picker
   ========================================================================== */

.rds-playlist-wrapper {
    position: relative;
}

.rds-playlist-manager {
    background: white;
    border: 1px solid var(--rds-border);
    border-radius: 10px;
    overflow: hidden;
}

.rds-playlist-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--rds-light);
    border-bottom: 1px solid var(--rds-border);
}

.rds-playlist-header h4 { margin: 0; font-size: 0.95em; flex: 1; }

.rds-playlist-tabs {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--rds-border);
    overflow-x: auto;
    background: #fafafa;
}

.rds-playlist-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    border: 1px solid var(--rds-border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    white-space: nowrap;
    transition: all 0.2s;
}

.rds-playlist-tab:hover { border-color: var(--rds-primary); }
.rds-playlist-tab.active { background: var(--rds-primary); color: white; border-color: var(--rds-primary); }
.rds-playlist-tab .dashicons { font-size: 14px; width: 14px; height: 14px; }
.rds-playlist-item-count { background: rgba(0,0,0,0.1); padding: 2px 6px; border-radius: 8px; font-size: 0.75em; }
.rds-playlist-tab.active .rds-playlist-item-count { background: rgba(255,255,255,0.3); }

.rds-playlist-content { padding: 15px; min-height: 200px; }
.rds-playlist-panel { display: none; }
.rds-playlist-panel.active { display: block; }

.rds-playlist-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rds-playlist-name-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--rds-border);
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
}

.rds-playlist-actions { display: flex; gap: 8px; }
.active-btn { background: #155724 !important; }
.rds-activate-playlist:not(.active-btn) { background: #6c757d !important; border-color: #6c757d !important; }

/* Bouton Ajouter un article */
.rds-add-item-btn-wrapper {
    margin-bottom: 15px;
}

.rds-add-item-btn-wrapper .rds-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border: 2px dashed var(--rds-border);
    background: var(--rds-light);
}

.rds-add-item-btn-wrapper .rds-btn:hover {
    border-color: var(--rds-primary);
    background: white;
}

/* Liste des articles de la playlist */
.rds-playlist-items {
    min-height: 100px;
}

.rds-playlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #888;
    text-align: center;
}

.rds-playlist-empty .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.rds-playlist-empty p { margin: 0; }

.rds-playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--rds-light);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.rds-playlist-item:hover { background: #e9ecef; }

.rds-drag-handle { cursor: grab; color: #999; padding: 2px; }
.rds-drag-handle:active { cursor: grabbing; }

.rds-item-thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.rds-item-no-image { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #ddd; border-radius: 4px; color: #888; flex-shrink: 0; }

.rds-item-info { flex: 1; min-width: 0; }
.rds-item-info .rds-item-title { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rds-item-info .rds-item-category { display: block; font-size: 0.8em; color: #888; }

.rds-item-price { color: var(--rds-primary); font-weight: 600; font-size: 0.9em; margin-right: 10px; }

.rds-remove-item { background: none; border: none; color: #999; cursor: pointer; padding: 4px; transition: color 0.2s; }
.rds-remove-item:hover { color: var(--rds-danger); }

.rds-sortable-placeholder { height: 50px; background: rgba(231, 76, 60, 0.1); border: 2px dashed var(--rds-primary); border-radius: 6px; margin-bottom: 8px; }

.rds-playlist-info { padding: 20px; text-align: center; color: #666; }

/* ==========================================================================
   ITEM PICKER (v1.1.9)
   ========================================================================== */

.rds-item-picker {
    margin-top: 20px;
    background: white;
    border: 1px solid var(--rds-border);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.rds-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--rds-light);
    border-bottom: 1px solid var(--rds-border);
}

.rds-picker-header h4 { margin: 0; font-size: 0.95em; }

.rds-picker-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 4px;
    transition: color 0.2s;
}

.rds-picker-close:hover { color: var(--rds-danger); }

.rds-picker-filters {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid var(--rds-border);
    background: #fafafa;
}

.rds-picker-search {
    flex: 1;
    position: relative;
}

.rds-picker-search .dashicons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
}

.rds-picker-search input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--rds-border);
    border-radius: 6px;
    font-size: 0.9em;
}

.rds-picker-filters select {
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid var(--rds-border);
    border-radius: 6px;
    font-size: 0.9em;
    background: white;
}

.rds-picker-results {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
}

.rds-picker-loading,
.rds-picker-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #888;
}

.rds-picker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--rds-light);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.rds-picker-item:hover { background: #e9ecef; }

.rds-picker-item.added {
    opacity: 0.6;
    background: #d4edda;
}

.rds-picker-item .rds-item-info { flex: 1; min-width: 0; }
.rds-picker-item .rds-item-title { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rds-picker-item .rds-item-category { display: block; font-size: 0.8em; color: #888; }

.rds-picker-item .rds-btn {
    flex-shrink: 0;
}

.rds-section-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #1565c0;
}

.rds-section-hint .dashicons { font-size: 18px; }

@media (max-width: 768px) {
    .rds-picker-filters {
        flex-direction: column;
    }
    
    .rds-picker-filters select {
        min-width: 100%;
    }
}
