/* Minimal Citation Verify Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #2d3436;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 5px;
}

.header p {
    color: #636e72;
    font-size: 16px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.upload-area {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border: 2px dashed #dfe6e9;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #74b9ff;
    background: #f8f9ff;
}

.upload-area.drag-over {
    border-color: #0984e3;
    background: #e3f2fd;
}

.upload-content {
    text-align: center;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2d3436;
}

.browse-btn {
    background: #0984e3;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 10px;
}

.browse-btn:hover {
    background: #0770c4;
}

.file-types {
    font-size: 14px;
    color: #636e72;
}

.progress-content {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #dfe6e9;
    border-top: 3px solid #0984e3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results {
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: 70vh;
    overflow-y: auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dfe6e9;
}

.results-header h3 {
    font-size: 20px;
    color: #2d3436;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat {
    font-size: 14px;
    padding: 5px 12px;
    background: #f1f3f5;
    border-radius: 20px;
    color: #636e72;
}

.stat.success {
    background: #d4edda;
    color: #155724;
}

.stat.error {
    background: #f8d7da;
    color: #721c24;
}

.results-body {
    margin-bottom: 20px;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.link-item:last-child {
    border-bottom: none;
}

.link-url {
    flex: 1;
    font-size: 14px;
    color: #2d3436;
    word-break: break-all;
    margin-right: 15px;
}

.link-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.working {
    background: #d4edda;
    color: #155724;
}

.status-badge.broken {
    background: #f8d7da;
    color: #721c24;
}

.status-code {
    color: #636e72;
    font-size: 12px;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.export-btn, .reset-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn {
    background: #00b894;
    color: white;
}

.export-btn:hover {
    background: #00a884;
}

.reset-btn {
    background: #f1f3f5;
    color: #636e72;
}

.reset-btn:hover {
    background: #e9ecef;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .upload-area {
        max-width: 100%;
        height: 250px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .stats {
        gap: 10px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .link-url {
        margin-right: 0;
    }
}