.rsl-control-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    transition: transform 0.3s ease;
}

.rsl-control-panel.collapsed {
    transform: translateX(280px);
}

.rsl-control-header {
    padding: 1rem;
    background: #6E7BFF;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.rsl-control-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.rsl-control-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.rsl-control-body {
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.rsl-control-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.rsl-control-section:last-child {
    border-bottom: none;
}

.rsl-control-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rsl-history-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.rsl-btn, .rsl-btn-primary {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.rsl-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

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

.rsl-btn-primary {
    background: #6E7BFF;
    color: white;
    border-color: #6E7BFF;
}

.rsl-btn-primary:hover {
    background: #5a67d8;
}

.rsl-history-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: auto;
}

.rsl-preset-list {
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.rsl-preset-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rsl-preset-load {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: #6E7BFF;
    color: white;
    border: 1px solid #6E7BFF;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.rsl-preset-load:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(110, 123, 255, 0.3);
}

.rsl-preset-load i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.rsl-preset-delete {
    padding: 0.5rem 0.75rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s;
}

.rsl-preset-delete:hover {
    background: #fecaca;
}

.rsl-preset-form {
    display: flex;
    gap: 0.5rem;
}

.rsl-preset-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

#rsl-import-textarea {
    width: 100%;
    min-height: 150px;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rsl-control-panel {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}