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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #141414;
    border-bottom: 1px solid #374151;
    z-index: 100;
}

    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

    margin-top: 60px;
    padding: 48px 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    max-width: 720px;
    margin: 0 auto;
}

.tool-main {
    flex: 1;
    padding: 32px 24px 120px;
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.group-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slider-label label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.slider-value {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

input[type="range"].slider {
    width: 100%;
    height: 4px;
    background-color: #374151;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: block;
}

input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    transition: box-shadow 150ms ease;
}

input[type="range"].slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="range"].slider:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.toggle-btn {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.toggle-btn:hover {
    background-color: #374151;
}

.toggle-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

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

.color-picker {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid #374151;
    background: transparent;
    cursor: pointer;
    padding: 2px;
    -webkit-appearance: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 5px;
}

.color-picker::-moz-color-swatch {
    border: none;
    border-radius: 5px;
}

.color-text-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', monospace;
    outline: none;
    width: 110px;
    transition: border-color 150ms ease;
}

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

.light-direction-control {
    display: flex;
    align-items: center;
    gap: 16px;
}

.light-dial {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #374151;
    background-color: #141414;
    position: relative;
    flex-shrink: 0;
}

.light-dial-indicator {
    width: 10px;
    height: 10px;
    background-color: #3b82f6;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    transition: transform 100ms ease;
}

.light-direction-control .slider {
    flex: 1;
}

.pro-section {
    padding: 16px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    opacity: 0.6;
    transition: opacity 150ms ease;
}

.pro-section.unlocked {
    opacity: 1;
}

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

.output-section {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.output-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.output-title {
    font-size: 18px;
    font-weight: 500;
    color: #d1d5db;
}

.preview-area {
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    transition: background-color 150ms ease;
}

.preview-element {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    transition: border-radius 150ms ease;
}

.code-block {
    background-color: #111111;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.6;
    white-space: pre;
}

.button-copy {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    align-self: flex-start;
}

.button-copy:hover {
    background-color: #2563eb;
}

.button-copy:active {
    background-color: #1d4ed8;
}

.button-copy.copied {
    background-color: #10b981;
}

.pro-panel {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0.6;
    transition: opacity 150ms ease;
}

.pro-panel.unlocked {
    opacity: 1;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scheme-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.scheme-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 150ms ease;
    border: none;
    padding: 0;
}

.scheme-swatch:hover {
    transform: scale(1.05);
}

.component-preview-area {
    min-height: 200px;
    padding: 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    transition: background-color 150ms ease;
}

.dark-preview-area {
    min-height: 250px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a2a2a;
    transition: background-color 150ms ease;
}

.dark-preview-area .preview-element {
    width: 150px;
    height: 150px;
}

.pro-cta-content {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pro-cta-text {
    font-size: 14px;
    color: #d1d5db;
}

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

.modal-overlay.modal-hidden {
    display: none;
}

.modal-overlay.modal-visible {
    display: flex;
}

.modal {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 150ms ease;
}

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

.modal-content {
    padding: 24px;
}

.modal-feature-context {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 20px;
}

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

.pro-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.feature-check {
    width: 20px;
    height: 20px;
    background-color: #059669;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

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

.modal-cta {
    width: 100%;
    display: block;
}

.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #374151;
    padding: 32px 24px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 640px) {
        padding: 32px 16px;
    }

        font-size: 24px;
        line-height: 32px;
    }

        font-size: 14px;
    }

    .tool-main {
        padding: 24px 16px 100px;
    }

    .tool-container {
        gap: 32px;
    }

    .output-section {
        padding: 16px;
    }

    .pro-panel {
        padding: 16px;
    }

    .preview-area {
        min-height: 300px;
    }

    .preview-element {
        width: 150px;
        height: 150px;
    }

    .button-group {
        flex-wrap: wrap;
    }

    .toggle-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .light-dial {
        width: 48px;
        height: 48px;
    }

    .code-block {
        padding: 14px;
    }

    .code-block code {
        font-size: 12px;
    }

    .pro-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

        padding: 0 16px;
    }

    .component-preview-area {
        min-height: 160px;
        padding: 20px;
    }

    .dark-preview-area {
        min-height: 180px;
    }

    .dark-preview-area .preview-element {
        width: 120px;
        height: 120px;
    }

    .scheme-swatches {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        gap: 8px;
    }
}