/* Tool-specific styles only - base styles are in tool-layout.css */

.tool-header {
    text-align: center;
    padding: 48px 24px 32px;
    background: #0a0a0a;
    border-bottom: 1px solid #374151;
}

.tool-header h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.tool-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #e5e7eb;
    margin: 0;
}

.tool-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px;
}

.input-section {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 8px;
}

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

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.value-display {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    background: #1e3a8a;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

input[type="color"] {
    width: 60px;
    height: 40px;
    border: 1px solid #374151;
    border-radius: 6px;
    background: #141414;
    cursor: pointer;
    padding: 4px;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 4px;
    overflow: hidden;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

select {
    width: 100%;
    background: #141414;
    border: 1px solid #374151;
    padding: 12px 16px;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 15px;
    font-weight: 400;
}

select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #374151;
    border-radius: 24px;
    transition: background-color 150ms ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 150ms ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #3b82f6;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label input[type="checkbox"]:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-text {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.pro-feature {
    position: relative;
    opacity: 0.7;
}

.pro-feature input,
.pro-feature select {
    /* cursor handled via pointer-events:none set in JS to avoid Ø cursor display bug */
    cursor: default;
}

.pro-badge {
    position: absolute;
    top: 0;
    right: 0;
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 60px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 150ms ease;
    flex: 1;
}

.btn.primary {
    background: #3b82f6;
    color: #ffffff;
}

.btn.primary:hover {
    background: #2563eb;
}

.btn.primary:active {
    background: #1d4ed8;
}

.btn.secondary {
    background: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
}

.btn.secondary:hover {
    background: #374151;
}

.btn:disabled {
    background: #374151;
    color: #6b7280;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background: #374151;
}

.output-section {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
}

.preview-container {
    margin-bottom: 24px;
}

.preview-label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 12px;
}

.wave-preview {
    background: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-preview svg {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.code-container {
    margin-top: 60px;
}

.code-label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 12px;
}

#svg-code {
    width: 100%;
    min-height: 120px;
    background: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 12px 16px;
    color: #e5e7eb;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    white-space: pre;
    overflow-wrap: break-word;
}

#svg-code:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.pro-cta-content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 720px;
    width: 100%;
}

.pro-cta-text {
    color: #0a0a0a;
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.btn.pro-cta {
    background: #0a0a0a;
    color: #fbbf24;
    border: 1px solid #0a0a0a;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.btn.pro-cta:hover {
    background: #1a1a1a;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal-content {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #374151;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: #e5e7eb;
}

.modal-body {
    padding: 24px;
}

.pro-features-list {
    margin-bottom: 24px;
}

.pro-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.feature-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.feature-text {
    color: #e5e7eb;
    font-size: 15px;
    font-weight: 400;
}

.btn.pro-upgrade {
    width: 100%;
    color: #0a0a0a;
    font-weight: 600;
    padding: 16px 24px;
    border: none;
}

.btn.pro-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

@media (max-width: 768px) {
    .tool-header {
        padding: 32px 16px 24px;
    }
    
    .tool-header h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .tool-main {
        padding: 24px 16px;
    }
    
    .input-section,
    .output-section {
        padding: 16px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .pro-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .bug-report-btn {
        bottom: 20px;
        left: 20px;
        right: auto;
    }
}