/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent-primary);
    color: white;
}
.btn-primary:hover {
    background: var(--color-accent-primary-hover);
    box-shadow: var(--shadow-glow-primary);
}

.btn-spotify {
    background: var(--color-accent-spotify);
    color: white;
}
.btn-spotify:hover {
    background: var(--color-accent-spotify-hover);
    box-shadow: var(--shadow-glow-spotify);
}

.btn-youtube {
    background: var(--color-accent-youtube);
    color: white;
}
.btn-youtube:hover {
    background: var(--color-accent-youtube-hover);
    box-shadow: var(--shadow-glow-youtube);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border-light);
    color: var(--color-text-primary);
}
.btn-outline:hover {
    background: var(--color-bg-card);
    border-color: var(--color-accent-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}
.btn-ghost:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-card);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}
.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: var(--color-success);
    color: white;
}
.btn-success:hover {
    background: #27ae60;
}

/* Inputs */
.input {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

.input:focus {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px var(--color-accent-muted);
}

.input::placeholder {
    color: var(--color-text-muted);
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group .input {
    flex: 1;
}

/* Cards */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
}

.card-interactive {
    cursor: pointer;
}
.card-interactive:hover {
    border-color: var(--color-border-light);
    background: var(--color-bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--color-accent-muted);
    color: var(--color-accent-primary);
}

.badge-spotify {
    background: rgba(29, 185, 84, 0.2);
    color: var(--color-accent-spotify);
}

.badge-youtube {
    background: rgba(255, 0, 0, 0.2);
    color: var(--color-accent-youtube);
}

.badge-admin {
    background: rgba(243, 156, 18, 0.2);
    color: var(--color-warning);
}

/* Toggle */
.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--color-border);
    border-radius: 13px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.toggle.active {
    background: var(--color-accent-primary);
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.toggle.active::after {
    transform: translateX(22px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-notification);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.toast {
    padding: 12px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
}

.toast.toast-exit {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}
