/* 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: all 0.2s ease;
}

.upload-icon {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 16px;
}

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

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

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
}

.file-info-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-size: 15px;
    font-weight: 500;
    color: #e5e7eb;
}

.file-meta {
    font-size: 13px;
    color: #6b7280;
}

.results-section {
    margin-top: 32px;
}

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

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

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

.font-table-wrapper {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
}

.font-table {
    width: 100%;
    border-collapse: collapse;
}

.font-table th,
.font-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #374151;
}

.font-table th {
    background: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.font-table tbody tr:hover {
    background: #1a1a1a;
}

.font-table td {
    font-size: 14px;
    color: #e5e7eb;
}

.font-name {
    font-weight: 500;
    color: #ffffff;
}

.font-type {
    color: #9ca3af;
}

.embedded-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.embedded-yes {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.embedded-no {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.embedded-partial {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.page-mapping-section {
    margin-top: 24px;
}

.page-mapping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.page-mapping-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.page-card {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
}

.page-card-header {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #374151;
}

.page-fonts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-font-item {
    font-size: 13px;
    color: #d1d5db;
    padding: 4px 0;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
}

.export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.pro-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-section {
    text-align: center;
    padding: 48px 24px;
}

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

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

.loading-text {
    font-size: 15px;
    color: #e5e7eb;
    display: block;
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-detail {
    font-size: 13px;
    color: #6b7280;
    display: block;
    margin-top: 8px;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.empty-state p {
    font-size: 15px;
    margin: 0;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.toast.show {
    opacity: 1;
}

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

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

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

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

    .font-table-wrapper {
        overflow-x: auto;
    }

    .font-table {
        min-width: 500px;
    }

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

    .export-actions button {
        width: 100%;
    }

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