/* PDF to Excel Converter Specific Styles */
.tool-container {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.tool-header {
    text-align: center;
    margin-bottom: 60px;
}

.breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.tool-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.tool-icon {
    font-size: 32px;
}

.tool-description {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.ai-icon {
    font-size: 18px;
}

/* Model Loading Section */
.model-section {
    margin-bottom: 60px;
}

.model-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.model-header h3 {
    font-weight: 600;
    margin: 0;
}

.model-size {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.model-card p {
    color: #64748b;
    margin-bottom: 48px;
    line-height: 1.5;
}

.model-progress {
    margin-bottom: 48px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    width: 0%;
    transition: width 0.3s ease;
}

.model-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

.load-model-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.load-model-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.load-model-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.model-note {
    margin-top: 24px;
    color: #94a3b8;
}

/* Tool Interface */
.tool-interface {
    transition: opacity 0.3s ease;
}

/* Upload Section */
.upload-section {
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 48px;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.upload-section.drag-over {
    border-color: #3b82f6;
    background: #f8fafc;
}

.dropzone-content {
    text-align: center;
}

.dropzone-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.dropzone-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.dropzone-content p {
    color: #64748b;
    margin-bottom: 16px;
}

.file-types {
    font-size: 14px;
    color: #94a3b8;
}

/* Extraction Options */
.extraction-options {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.extraction-options h4 {
    margin-bottom: 24px;
    font-weight: 600;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    font-weight: 500;
    color: #1e293b;
}

.option-group select {
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #1e293b;
    font-size: 14px;
}

.option-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.option-checkbox:hover {
    background: #f8fafc;
}

.option-checkbox input {
    margin: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.option-checkbox input:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.option-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Processing Section */
.processing-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 48px;
    margin-bottom: 32px;
}

.progress-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-weight: 600;
}

.progress-percent {
    color: #3b82f6;
    font-weight: 700;
}

.progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 12px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 48px;
}

.step {
    text-align: center;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.step.active {
    background: #3b82f6;
    color: white;
}

.step.completed {
    background: #f1f5f9;
    color: #1e293b;
}

.processing-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

/* Result Section */
.result-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 48px;
    margin-bottom: 32px;
}

.result-success {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.result-success h3 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.result-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin: 48px 0;
    text-align: left;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-weight: 600;
    color: #1e293b;
}

.preview-table {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin: 48px 0;
    text-align: left;
}

.preview-table h5 {
    margin-bottom: 16px;
    font-weight: 600;
    color: #1e293b;
}

.table-container {
    max-height: 300px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.extracted-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.extracted-table th,
.extracted-table td {
    border: 1px solid #e2e8f0;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
}

.extracted-table th {
    background: #f1f5f9;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.extracted-table tr:nth-child(even) {
    background: white;
}

.download-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn.primary {
    background: #3b82f6;
    color: white;
}

.download-btn.primary:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

.download-btn.secondary {
    background: transparent;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.download-btn.secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Error Section */
.error-section {
    background: white;
    border: 1px solid #fecaca;
    border-radius: 20px;
    padding: 48px;
    margin-bottom: 32px;
}

.error-message {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.error-message h3 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    color: #dc2626;
}

.retry-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #6366f1;
}

/* Features Section */
.features-section {
    margin-top: 60px;
    padding-top: 48px;
    border-top: 1px solid #e2e8f0;
}

.features-section h3 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 32px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.no-data {
    text-align: center;
    color: #64748b;
    padding: 40px;
    font-style: italic;
}

.preview-info {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    padding: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-container {
        margin: 80px auto 40px;
    }
    
    .tool-title {
        font-size: 32px;
        flex-direction: column;
        gap: 8px;
    }
    
    .upload-section {
        padding: 32px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .download-btn {
        justify-content: center;
    }
    
    .progress-steps {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tool-title {
        font-size: 24px;
    }
    
    .upload-section {
        padding: 24px;
    }
    
    .model-card {
        padding: 32px;
    }
}