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

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #d1d5db;
}

.input-section,
.output-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.textarea-wrapper {
    position: relative;
}

.text-area {
    width: 100%;
    min-height: 200px;
    background-color: #111111;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #e5e7eb;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 16px;
    resize: vertical;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

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

.text-area[readonly] {
    cursor: default;
    background-color: #0d0d0d;
}

.stats-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #9ca3af;
}

.stats-bar .stat-item {
    display: inline;
}

.stats-bar .stat-item span {
    font-weight: 600;
    color: #e5e7eb;
}

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

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

.button-small {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.button-copy {
    background-color: #059669;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
}

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

.button-copy:active {
    background-color: #065f46;
}

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

.options-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background-color: #111111;
    border: 1px solid #374151;
    border-radius: 8px;
}

label.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #e5e7eb;
    padding: 6px 4px;
    border-radius: 6px;
    transition: background-color 150ms ease;
}

label.checkbox-label:hover {
    background-color: #1a1a1a;
}

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

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

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

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

.options-actions {
    display: flex;
    gap: 12px;
}

.summary-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.summary-item {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #141414;
    border: 1px solid #222222;
    border-radius: 6px;
}

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

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #3b82f6;
}

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

    .options-container {
        padding: 16px;
    }

    .options-actions {
        flex-direction: column;
    }

    .summary-item {
        flex: 1 1 100%;
    }

        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .summary-container {
        gap: 8px;
    }
}