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

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

.file-upload-zone {
    background: #0a0a0a;
    border: 2px dashed #374151;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-icon {
    font-size: 32px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.upload-primary {
    font-size: 16px;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.upload-secondary {
    font-size: 14px;
    color: #6b7280;
}

.error-banner {
    background: #7f1d1d;
    border: 1px solid #dc2626;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.error-text {
    color: #fca5a5;
    font-size: 14px;
}

.error-dismiss {
    background: none;
    border: none;
    color: #fca5a5;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
}

.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    margin-top: 24px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #374151;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    color: #9ca3af;
    font-size: 15px;
}

.file-info {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.file-info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.file-info-label {
    color: #9ca3af;
    font-size: 14px;
}

.file-info-value {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
}

.field-summary {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.field-summary-text {
    color: #d1d5db;
    font-size: 15px;
}

.no-fields-message {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
}

.no-fields-message p {
    color: #9ca3af;
    font-size: 15px;
    margin: 0 0 8px 0;
}

.no-fields-hint {
    color: #6b7280;
    font-size: 13px;
}

.field-list-container {
    margin-bottom: 24px;
}

.field-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.field-list-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

.field-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-filter label {
    font-size: 14px;
    color: #9ca3af;
}

.select-input {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 8px 12px;
    color: #e5e7eb;
    font-size: 14px;
    cursor: pointer;
}

.select-input:focus {
    border-color: #3b82f6;
    outline: none;
}

.field-table-wrap {
    overflow-x: auto;
    border: 1px solid #374151;
    border-radius: 8px;
}

.field-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.field-table th {
    background: #1a1a1a;
    color: #9ca3af;
    font-weight: 500;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #374151;
}

.field-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #374151;
    color: #e5e7eb;
    vertical-align: top;
}

.field-table tr:last-child td {
    border-bottom: none;
}

.field-table tr:hover td {
    background: #1a1a1a;
}

.field-name {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #3b82f6;
    word-break: break-all;
}

.field-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.field-type-text { background: #1e3a8a; color: #93c5fd; }

.field-type-checkbox { background: #166534; color: #86efac; }


.field-type-dropdown { background: #581c87; color: #d8b4fe; }

.field-type-button { background: #374151; color: #d1d5db; }


.field-value {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #d1d5db;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-value-empty {
    color: #6b7280;
    font-style: italic;
}

.field-options {
    font-size: 13px;
    color: #9ca3af;
    max-width: 200px;
}

.field-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.field-options-list li {
    padding: 2px 0;
}

.export-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.button-primary {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.button-secondary {
    background: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.reset-row {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #374151;
}

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

    .field-list-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .field-table th,
    .field-table td {
        padding: 10px 12px;
    }
}