/* 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: 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
}

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

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.framework-card {
    cursor: pointer;
    display: block;
}

.framework-card input[type="radio"] {
    display: none;
}

.framework-card .card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    transition: all 150ms ease;
}

.framework-card .card-name {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    transition: color 150ms ease;
}

.framework-card:hover .card-inner {
    border-color: #4b5563;
    background-color: #1a1a1a;
}

.framework-card input[type="radio"]:checked + .card-inner {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.framework-card input[type="radio"]:checked + .card-inner .card-name {
    color: #ffffff;
}

.service-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.service-category:first-child {
    margin-top: 0;
}

.category-title {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.service-card {
    cursor: pointer;
    display: block;
}

.service-card input[type="checkbox"] {
    display: none;
}

.service-card .card-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    transition: all 150ms ease;
}

.service-card .card-name {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    transition: color 150ms ease;
}

.checkbox-indicator {
    width: 18px;
    height: 18px;
    background-color: #1a1a1a;
    border: 1px solid #4b5563;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 150ms ease;
}

.service-card:hover .card-inner {
    border-color: #4b5563;
    background-color: #1a1a1a;
}

.service-card input[type="checkbox"]:checked + .card-inner {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.08);
}

.service-card input[type="checkbox"]:checked + .card-inner .card-name {
    color: #ffffff;
}

.service-card input[type="checkbox"]:checked + .card-inner .checkbox-indicator {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.service-card input[type="checkbox"]:checked + .card-inner .checkbox-indicator::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.textarea-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    width: 100%;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.textarea-input::placeholder {
    color: #6b7280;
}

.format-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.format-label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    flex-shrink: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #d1d5db;
    transition: color 150ms ease;
}

.radio-label:hover {
    color: #ffffff;
}

.radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #4b5563;
    border-radius: 50%;
    background-color: #1a1a1a;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 150ms ease;
}

.radio-label input[type="radio"]:checked {
    border-color: #3b82f6;
    background-color: #3b82f6;
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.text-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    width: 100%;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.text-input::placeholder {
    color: #6b7280;
}

.select-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.select-input option {
    background-color: #1a1a1a;
}

.empty-state-text {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    padding: 8px 0;
}

.button-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
    width: 100%;
}

.button-secondary {
    background-color: #1a1a1a;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

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

.pro-feature.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;
}

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

.output-header h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    color: #d1d5db;
}

.output-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

.warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    border-radius: 6px;
}

.warning-icon {
    width: 22px;
    height: 22px;
    color: #0a0a0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.warning-text {
    font-size: 13px;
    color: #fcd34d;
    line-height: 1.5;
}

.code-output-wrapper {
    background-color: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
}

.code-output {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e5e7eb;
    padding: 20px;
    margin: 0;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
}

.code-output .env-comment {
    color: #6b7280;
}

.code-output .env-section {
    color: #9ca3af;
    font-weight: 600;
}

.code-output .env-key {
    color: #60a5fa;
}

.code-output .env-value {
    color: #34d399;
}

.code-output .env-equals {
    color: #6b7280;
}

.variable-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #1a1a1a;
    border-radius: 6px;
    flex-wrap: wrap;
}

.summary-item {
    font-size: 13px;
    color: #9ca3af;
}

.summary-item strong {
    color: #e5e7eb;
    font-weight: 600;
}

.summary-divider {
    color: #374151;
    font-size: 13px;
}

.secret-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.setting-item > label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}

.template-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.template-buttons {
    display: flex;
    gap: 8px;
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.template-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 6px;
}

.template-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
}

.template-item-actions {
    display: flex;
    gap: 8px;
}

.template-item-btn {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 150ms ease;
    font-family: inherit;
}

.template-item-btn.load {
    color: #60a5fa;
}

.template-item-btn.load:hover {
    background-color: rgba(59, 130, 246, 0.15);
}

.template-item-btn.delete {
    color: #f87171;
}

.template-item-btn.delete:hover {
    background-color: rgba(239, 68, 68, 0.15);
}

.validation-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.validation-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.validation-group-title {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 0;
}

.validation-group-title.missing {
    color: #f87171;
}

.validation-group-title.empty {
    color: #f87171;
}

.validation-group-title.extra {
    color: #fbbf24;
}

.validation-item {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
}

.validation-item.missing {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.validation-item.empty {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.validation-item.extra {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.validation-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-buttons .button-primary {
    flex: 1;
}

.action-buttons .button-secondary {
    flex: 1;
}

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

.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;
}

.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;
}

.error-message {
    background-color: #7f1d1d;
    border: 1px solid #dc2626;
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
}

.success-message {
    background-color: #064e3b;
    border: 1px solid #059669;
    color: #6ee7b7;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
}

.copy-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease;
}

.copy-tooltip.visible {
    opacity: 1;
}

.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;
}

.modal-hidden {
    display: none;
}

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

        font-size: 28px;
        line-height: 36px;
    }

        font-size: 14px;
    }

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

    .tool-container {
        gap: 32px;
    }

    .framework-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .output-section {
        padding: 16px;
    }

    .code-output {
        font-size: 12px;
        padding: 14px;
    }

    .format-selector {
        gap: 8px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .template-buttons {
        flex-direction: column;
    }

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

        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .framework-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .variable-summary {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .summary-divider {
        display: none;
    }
}