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

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

.tool-header {
    text-align: center;
    padding: 48px 32px;
    background: #0a0a0a;
}

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

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

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

.input-section {
    margin-bottom: 48px;
}

.form-container {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 32px;
}

.field-group {
    margin-bottom: 24px;
}

.field-group:last-child {
    margin-bottom: 32px;
}

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

.field-group h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: #d1d5db;
    margin: 0 0 12px 0;
}

input[type="text"],
textarea,
select {
    width: 100%;
    background: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 400;
    transition: border-color 150ms ease;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: #6b7280;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 400;
    color: #e5e7eb;
    cursor: pointer;
}

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

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #374151;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: border-color 150ms ease;
}

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

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 400;
    color: #e5e7eb;
    cursor: pointer;
}

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

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

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

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: #ffffff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.pro-feature input,
.pro-feature select,
.pro-feature textarea {
    cursor: not-allowed;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.pro-upgrade-hint {
    margin-top: 8px;
    padding: 12px 16px;
    background: #451a03;
    border: 1px solid #d97706;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pro-upgrade-hint span {
    font-size: 14px;
    color: #fbbf24;
}

.upgrade-btn {
    color: #0a0a0a;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 150ms ease;
}

.upgrade-btn:hover {
    opacity: 0.9;
}

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

.btn-download {
    background: #059669;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.btn-download:hover {
    background: #047857;
}

.btn-pro {
    color: #0a0a0a;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 150ms ease;
    width: 100%;
}

.btn-pro:hover {
    opacity: 0.9;
}

.output-section {
    margin-bottom: 48px;
}

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

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

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

.document-preview {
    min-height: 400px;
    color: #000000;
    padding: 32px;
    border-radius: 6px;
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
}

.document-preview h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 32px 0;
    color: #000000;
}

.document-preview h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 24px 0 12px 0;
    color: #000000;
}

.document-preview p {
    margin: 12px 0;
    color: #000000;
    font-size: 14px;
}

.document-preview ol,
.document-preview ul {
    margin: 12px 0 12px 24px;
    color: #000000;
}

.document-preview li {
    margin: 8px 0;
    color: #000000;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

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

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

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

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

.modal-body {
    padding: 24px;
}

.feature-list {
    margin-bottom: 24px;
}

.feature-item {
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 4px 0;
}

.feature-item p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

#bugDescription {
    width: 100%;
    min-height: 120px;
    margin-bottom: 16px;
}

.bug-report {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.bug-report button {
    background: #374151;
    color: #d1d5db;
    border: none;
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 150ms ease;
}

.bug-report button:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .tool-main {
        padding: 0 16px;
    }
    
    .form-container,
    .preview-container {
        padding: 24px 16px;
    }
    
    .tool-header {
        padding: 32px 16px;
    }
    
    .tool-header h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .pro-upgrade-hint {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .bug-report {
        bottom: 20px;
        left: 20px;
        right: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #374151;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}