/* Tailwind-like utility classes for admin panel */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --background: 0 0% 7%; /* #121212 */
    --foreground: 0 0% 100%; /* #ffffff */
    --card: 0 0% 14.5%; /* #252525 */
    --card-foreground: 0 0% 100%; /* #ffffff */
    --popover: 0 0% 14.5%; /* #252525 */
    --popover-foreground: 0 0% 100%; /* #ffffff */
    --primary: 65 100% 47%; /* #e0f009 - zielony z palety */
    --primary-foreground: 0 0% 0%; /* #000000 */
    --secondary: 0 0% 8.2%; /* #151515 */
    --secondary-foreground: 0 0% 100%; /* #ffffff */
    --muted: 0 0% 18%; /* #2e2e2e */
    --muted-foreground: 0 0% 81%; /* #cfcfcf */
    --accent: 0 0% 18%; /* #2e2e2e */
    --accent-foreground: 0 0% 100%; /* #ffffff */
    --destructive: 11 100% 50%; /* czerwony z palety */
    --destructive-foreground: 0 0% 100%; /* #ffffff */
    --border: 0 0% 20%; /* #333333 */
    --input: 0 0% 14.5%; /* #252525 */
    --ring: 65 100% 47%; /* #e0f009 */
    --radius: 0.5rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
    min-height: 100vh;
    font-feature-settings: "rlig" 1, "calt" 1;
}

/* Sample Pad Creator UI Components */
.bg-primary { background-color: #e0f009; color: #000000; }
.bg-secondary { background-color: #151515; color: #ffffff; }
.bg-card { background-color: #252525; color: #ffffff; }
.bg-muted { background-color: #2e2e2e; color: #cfcfcf; }
.bg-accent { background-color: #2e2e2e; color: #ffffff; }
.bg-destructive { background-color: #ff3333; color: #ffffff; }

.text-primary { color: #e0f009; }
.text-secondary { color: #cfcfcf; }
.text-muted { color: #cfcfcf; }
.text-destructive { color: #ff3333; }

.border-primary { border-color: #e0f009; }
.border-secondary { border-color: #333333; }
.border-muted { border-color: #333333; }

/* Legacy colors for compatibility */
.bg-green-700 { background-color: #e0f009; color: #000000; }
.bg-purple-600 { background-color: #2e2e2e; color: #ffffff; }
.bg-purple-700 { background-color: #252525; color: #ffffff; }
.bg-red-600 { background-color: #ff3333; color: #ffffff; }
.bg-red-700 { background-color: #cc2222; color: #ffffff; }
.bg-gray-800 { background-color: #252525; color: #ffffff; }
.bg-gray-700 { background-color: #2e2e2e; color: #ffffff; }
.bg-gray-600 { background-color: #333333; color: #ffffff; }

.text-white { color: #ffffff; }
.text-gray-300 { color: #cfcfcf; }
.text-gray-400 { color: #999999; }
.text-gray-500 { color: #777777; }
.text-blue-400 { color: #e0f009; }
.text-blue-300 { color: #e0f009; }
.text-green-400 { color: #e0f009; }
.text-green-400 { color: #4ade80; }
.text-green-300 { color: #86efac; }
.text-red-400 { color: #f87171; }
.text-red-300 { color: #fca5a5; }
.border-gray-600 { border-color: #4b5563; }
.border-gray-700 { border-color: #374151; }
.border-white { border-color: #ffffff; }

/* Layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.ml-4 { margin-left: 1rem; }
.ml-5 { margin-left: 1.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }

/* Sizing */
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-0 { width: 0; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.max-w-md { max-width: 28rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-h-80vh { max-height: 80vh; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* Borders & Radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }

/* Flexbox & Grid */
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Effects */
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Interactive */
.cursor-pointer { cursor: pointer; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-purple-700:hover { background-color: #7c3aed; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-blue-300:hover { color: #93c5fd; }
.hover\:text-green-300:hover { color: #86efac; }
.hover\:text-red-300:hover { color: #fca5a5; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
.focus\:border-transparent:focus { border-color: transparent; }

/* Form Elements */
input, select, textarea, button { 
    padding: 0.5rem 0.75rem; 
    border-radius: 0.375rem; 
    border: 1px solid #4b5563;
    background-color: #374151;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.2s;
}
input:focus, select:focus, textarea:focus { 
    outline: none; 
    border-color: #2563eb; 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
}
button { 
    cursor: pointer; 
    background-color: #2563eb; 
    border-color: #2563eb; 
}
button:hover { background-color: #1d4ed8; }
.placeholder-gray-400::placeholder { color: #9ca3af; }

/* Table */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 1.5rem; text-align: left; }
.divide-y > * + * { border-top-width: 1px; }
.divide-gray-700 > * + * { border-top-color: #374151; }
.min-w-full { min-width: 100%; }
.whitespace-nowrap { white-space: nowrap; }

/* Responsive */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:max-w-4xl { max-width: 56rem; }
}

@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:px-0 { padding-left: 0; padding-right: 0; }
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Custom Components */
.col-span-full { grid-column: 1 / -1; }
.aspect-ratio-1 { aspect-ratio: 1; }

/* File input styling */
input[type="file"] {
    padding: 0.5rem;
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    color: #ffffff;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin-right: 1rem;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #1d4ed8;
}

/* Color input styling */
input[type="color"] {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Modal backdrop */
.bg-opacity-50 { background-color: rgba(75, 85, 99, 0.5); }

/* Sample Pad Creator GUI Styles */
.sample-pad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 2px solid #333;
}

.sample-pad {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.sample-pad:hover {
    border-color: #60a5fa;
    background: linear-gradient(135deg, #374151 0%, #2a2a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.sample-pad.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.sample-pad.has-sample {
    border-color: #10b981;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

.sample-pad.has-sample:hover {
    border-color: #34d399;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.sample-pad.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.sample-pad.drag-over {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.pad-number {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 10px;
    font-weight: bold;
    color: #9ca3af;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 4px;
    border-radius: 3px;
}

.pad-waveform {
    width: 90%;
    height: 30px;
    background: #111;
    border-radius: 4px;
    margin: 4px 0;
    position: relative;
    overflow: hidden;
}

.waveform-bars {
    display: flex;
    align-items: end;
    height: 100%;
    padding: 2px;
    gap: 1px;
}

.waveform-bar {
    flex: 1;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    min-height: 2px;
    border-radius: 1px;
    opacity: 0.8;
}

.pad-info {
    text-align: center;
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

.pad-controls {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.sample-pad:hover .pad-controls {
    opacity: 1;
}

.pad-control-btn {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
}

.pad-control-btn.play {
    background: #10b981;
    color: white;
}

.pad-control-btn.play:hover {
    background: #059669;
}

.pad-control-btn.delete {
    background: #ef4444;
    color: white;
}

.pad-control-btn.delete:hover {
    background: #dc2626;
}

/* Sample Upload Area */
.sample-upload-area {
    border: 2px dashed #4b5563;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #1f2937;
    transition: all 0.2s;
    cursor: pointer;
}

.sample-upload-area:hover {
    border-color: #60a5fa;
    background: #374151;
}

.sample-upload-area.drag-over {
    border-color: #10b981;
    background: #065f46;
}

/* Sample Library */
.sample-library {
    background: #1f2937;
    border-radius: 8px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.sample-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #374151;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: grab;
    transition: all 0.2s;
}

.sample-item:hover {
    background: #4b5563;
    transform: translateX(4px);
}

.sample-item:active {
    cursor: grabbing;
}

.sample-item-waveform {
    width: 60px;
    height: 20px;
    background: #111;
    border-radius: 3px;
    margin-right: 12px;
}

.sample-item-info {
    flex: 1;
}

.sample-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 2px;
}

.sample-item-duration {
    font-size: 11px;
    color: #9ca3af;
}

/* Kit Settings Panel */
.kit-settings-panel {
    background: #1f2937;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #374151;
}

/* Sample Pad Creator Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e5e7eb;
    font-size: 0.875rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid #4b5563;
    border-radius: 0.5rem;
    background-color: #374151;
    color: #e5e7eb;
    font-size: 0.875rem;
    transition: all 0.1s ease-in-out;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.1);
    background-color: #2e2e2e;
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
    border-color: #555555;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #4b5563;
    cursor: pointer;
    transition: border-color 0.2s;
}

.color-preview:hover {
    border-color: #60a5fa;
}

/* Original Sample Pad Creator Styles */
.advanced-upload-area {
    border: 2px dashed #333333;
    border-radius: 0.5rem;
    padding: 30px 20px;
    text-align: center;
    background: #252525;
    transition: all 0.1s ease-in-out;
    cursor: pointer;
}

.advanced-upload-area:hover {
    border-color: #e0f009;
    background: #2e2e2e;
}

.advanced-upload-area.drag-over {
    border-color: #e0f009;
    background: #2e2e2e;
    box-shadow: 0 0 8px rgba(224, 240, 9, 0.3);
}

.upload-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.instructions-panel {
    background: #252525;
    border-radius: 0.5rem;
    padding: 16px;
    border: 2px solid #333333;
}

/* Original Pad Grid from sample-pad-creator */
.pad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 0 auto 0.5rem auto;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.advanced-pad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 0 auto 0.5rem auto;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

/* Original Sample Pad from sample-pad-creator */
.sample-pad, .advanced-pad {
    background-color: #252525;
    border-radius: 0.5rem;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #333333;
    transition: all 0.1s ease-in-out;
    width: 100%;
    height: 100%;
    min-height: 70px;
    min-width: 70px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sample-pad:hover, .advanced-pad:hover {
    background-color: #2e2e2e;
    border-color: #e0f009;
}

.sample-pad:active, .sample-pad.active, .advanced-pad:active, .advanced-pad.selected {
    transform: scale(0.95);
    border-color: #e0f009;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sample-pad.has-sample, .advanced-pad.has-sample {
    background-color: #2e2e2e;
    border-color: #e0f009;
    border-width: 2px;
}

.sample-pad.has-sample:hover, .advanced-pad.has-sample:hover {
    border-color: #e0f009;
    box-shadow: 0 0 8px rgba(224, 240, 9, 0.3);
}

.sample-pad.playing, .advanced-pad.playing {
    background-color: #e0f009;
    border-color: #e0f009;
    color: #000000;
}

.pad-visual-number {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 9px;
    font-weight: bold;
    color: #9ca3af;
    background: rgba(0, 0, 0, 0.6);
    padding: 1px 3px;
    border-radius: 2px;
}

/* Original Key Hint from sample-pad-creator */
.key-hint, .pad-key-trigger {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 0.8rem;
    font-weight: normal;
    color: #cfcfcf;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    opacity: 0.8;
}

.pad-grid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.keyboard-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.keyboard-toggle.disabled {
    opacity: 0.5;
}

.pad-sample-name {
    text-align: center;
    color: #e5e7eb;
    font-size: 9px;
    font-weight: 500;
    margin-top: 2px;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pad-waveform-mini {
    width: 80%;
    height: 16px;
    background: #111;
    border-radius: 2px;
    margin: 2px 0;
    overflow: hidden;
}

.waveform-mini-bars {
    display: flex;
    align-items: end;
    height: 100%;
    padding: 1px;
    gap: 1px;
}

.waveform-mini-bar {
    flex: 1;
    background: linear-gradient(to top, #10b981, #34d399);
    min-height: 1px;
    border-radius: 1px;
    opacity: 0.8;
}

.key-mapping {
    margin-top: 16px;
}

.key-display {
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 4px;
    padding: 4px;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: #9ca3af;
}

.advanced-pad-editor {
    background: #1f2937;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #374151;
    min-height: 400px;
}

.editor-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #374151;
}

.editor-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.editor-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 6px;
}

.editor-input {
    width: 100%;
    padding: 6px 8px;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 4px;
    color: #e5e7eb;
    font-size: 12px;
    transition: border-color 0.2s;
}

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

.editor-slider {
    width: 100%;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.editor-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

.editor-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.editor-value-display {
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
    margin-top: 2px;
}

/* Sample Pad Creator Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.1s ease-in-out;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #e0f009;
    color: #000000;
    border-color: #e0f009;
}

.btn-primary:hover {
    background-color: #d4e608;
    box-shadow: 0 0 8px rgba(224, 240, 9, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #2e2e2e;
    color: #ffffff;
    border-color: #333333;
}

.btn-secondary:hover {
    background-color: #333333;
    border-color: #e0f009;
}

.btn-danger {
    background-color: #ff3333;
    color: #ffffff;
    border-color: #ff3333;
}

.btn-danger:hover {
    background-color: #cc2222;
    box-shadow: 0 0 8px rgba(255, 51, 51, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sample-pad-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .sample-pad {
        min-height: 60px;
    }
    
    .pad-waveform {
        height: 20px;
    }
    
    .advanced-pad-grid {
        max-width: 300px;
        gap: 6px;
    }
    
    .advanced-pad {
        min-height: 60px;
        font-size: 10px;
    }
}
