/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.logo i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 0.25rem 0;
    border-radius: 0 12px 12px 0;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #ffffff;
    border-left-color: #667eea;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-item i {
    width: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-item:hover i,
.nav-item.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.4));
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    background: transparent;
    position: relative;
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    z-index: -1;
}

/* Top Header */
.top-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Stats Section */
.stats-section {
    padding: 2rem 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.stat-icon.total {
    background: #dbeafe;
    color: #4dd81d;
}

.stat-icon.processing {
    background: #fef3c7;
    color: #d97706;
}

.stat-icon.completed {
    background: #d1fae5;
    color: #059669;
}

.stat-icon.failed {
    background: #fee2e2;
    color: #dc2626;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Jobs Section */
/* Demo Section */
.demo-section {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

.demo-section .section-header h2 {
    color: #3b82f6;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.demo-section .section-header p {
    color: rgba(59, 130, 246, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.demo-table {
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.demo-table th {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-weight: 700;
}

.demo-table td {
    background: rgba(255, 255, 255, 0.8);
}

.jobs-section {
    padding: 0 2.5rem 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #dddddd;
}

.filters {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cacaca;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #ffffff;
    font-size: 0.875rem;
    color: #374151;
    min-width: 140px;
}

.search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input i {
    position: absolute;
    left: 0.75rem;
    color: #9ca3af;
}

.search-input input {
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #ffffff;
    font-size: 0.875rem;
    color: #374151;
    width: 250px;
}

.search-input input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Table Container */
.table-container {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

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

.jobs-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    border-bottom: 1px solid #e2e8f0;
}

.jobs-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.jobs-table tbody tr:hover {
    background: #f8fafc;
}

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

/* Table Content Styles */
.job-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-id-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.copy-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.file-name {
    /* display: flex; */
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.file-name i {
    color: #059669;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.uploaded {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.completed {
    background: #d1fae5;
    color: #059669;
}

.status-badge.failed {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.unknown {
    background: #e2e8f0;
    color: #475569;
}

.results {
    text-align: center;
}

.results i {
    color: #3b82f6;
    cursor: pointer;
    transition: color 0.2s ease;
}

.results i:hover {
    color: #2563eb;
}

.results-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.results-summary.processing {
    color: #d97706;
}

.results-summary.error {
    color: #dc2626;
}

.results-summary i {
    font-size: 0.875rem;
}

.actions {
    /* display: flex; */
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
}

.action-btn.download {
    background: #d1fae5;
    color: #059669;
}

.action-btn.download:hover {
    background: #a7f3d0;
    transform: translateY(-1px);
}

.action-btn.view {
    background: #dbeafe;
    color: #1d4ed8;
}

.action-btn.view:hover {
    background: #bfdbfe;
    transform: translateY(-1px);
}

.action-btn.retry {
    background: #fef3c7;
    color: #d97706;
}

.action-btn.retry:hover {
    background: #fde68a;
    transform: translateY(-1px);
}

.action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn.delete:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

/* Loading and Empty States */
.loading-row {
    text-align: center;
    padding: 3rem 1.5rem;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #64748b;
}

.loading-content i {
    font-size: 2rem;
    color: #3b82f6;
}

.no-jobs {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
}

.empty-state h3 {
    color: #475569;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Upload Section */
.upload-section {
    padding: 7rem 2rem;
}

.upload-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.upload-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.upload-header i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
    animation: float 3s ease-in-out infinite;
}

.upload-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upload-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.upload-area.dragover {
    border-color: #3b82f6;
    background: #e0f2fe;
    transform: scale(1.02);
}

.upload-content i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.3));
}

.upload-content p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
}

.file-types {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Files Info */
.files-info {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.files-info.dragover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.files-header h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.remove-all-files {
    background: #ffdddd;
    color: #b12727;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-all-files:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    transform: translateY(-1px);
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.file-item .file-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-item .file-details i {
    font-size: 1.5rem;
    color: #667eea;
}

.file-item .file-details-text {
    flex: 1;
}

.file-item .file-details-text h4 {
    color: rgb(0, 0, 0);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.file-item .file-details-text p {
    color: rgb(62, 60, 60);
    font-size: 0.875rem;
    margin: 0;
}

.file-item .remove-file {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-item .remove-file:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    transform: scale(1.1);
}

.file-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #bae6fd;
}

.file-details i {
    font-size: 2rem;
    color: #0ea5e9;
}

.file-details-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 0.25rem;
}

.file-details-text p {
    color: #0369a1;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.remove-file {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: auto;
}

.remove-file:hover {
    background: #fecaca;
    transform: scale(1.1);
}

/* Validate Button */
.validate-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    display: block;
}

.validate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.validate-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Status Section */
.status-section {
    padding: 0 2.5rem 2.5rem;
}

.status-card-main {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 700px;
    margin: 0 auto;
    margin-top: 2rem;
}

.status-header {
    text-align: center;
    margin-bottom: 2rem;
}

.status-header i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.status-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.status-header p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* File Details Card */
.file-details-card {
    background: #f0f9ff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #bae6fd;
}

.file-info-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.file-info-display i {
    font-size: 2.5rem;
    color: #0ea5e9;
}

.file-details-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.file-details-text p {
    color: #0369a1;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Status Display Card */
.status-display-card {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.status-display-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #3b82f6;
}

.status-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.status-message {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

/* Results Summary */
.results-summary {
    background: #f0fdf4;
    border-radius: 0.75rem;
    padding: 1.5rem;
    /* margin-bottom: 2rem; */
    border: 1px solid #bbf7d0;
}

.results-summary h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 1rem;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.875rem;
    color: #166534;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #166534;
}

.summary-value.valid {
    color: #059669;
}

.summary-value.risky {
    color: #d97706;
}

.summary-value.invalid {
    color: #dc2626;
}

/* Action Buttons */
.action-buttons {
    display: flex !important;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 1rem 0;
}

.check-status-btn, .download-btn, .new-validation-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 120px;
    height: 42px;
}

.check-status-btn:hover, .download-btn:hover, .new-validation-btn:hover {
    transform: translateY(-1px);
}

/* Status States */
.status-completed .status-indicator {
    color: #059669;
}

.status-completed .status-spinner {
    border-top-color: #059669;
    animation: none;
}

.status-completed .status-message {
    color: #059669;
    font-weight: 500;
}

.status-failed .status-indicator {
    color: #dc2626;
}

.status-failed .status-spinner {
    border-top-color: #dc2626;
    animation: none;
}

.status-failed .status-message {
    color: #dc2626;
    font-weight: 500;
}

/* Responsive adjustments for status section */
@media (max-width: 768px) {
    .status-section {
        padding: 0 1rem 1.5rem;
    }
    
    .status-card-main {
        padding: 2rem 1.5rem;
    }
    
    .file-info-display {
        flex-direction: column;
        text-align: center;
    }
    
    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        font-size: 0.875rem;
    }
    
    .summary-value {
        font-size: 1.25rem;
    }
    
    .summary-label {
        font-size: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .check-status-btn, .download-btn, .new-validation-btn {
        min-width: 100px;
        flex: 0 1 auto;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
    
    .top-header,
    .stats-section,
    .jobs-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
    }
    
    .upload-section {
        padding: 0.5rem 1rem;
    }
    
    .upload-card {
        padding: 1.5rem;
    }
    
    .upload-header {
        margin-bottom: 1rem;
    }
    
    .upload-header i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .upload-header h2 {
        font-size: 1.25rem;
    }
    
    .upload-header p {
        font-size: 0.8rem;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .upload-content i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .upload-content p {
        font-size: 0.9rem;
    }
    
    .file-types {
        font-size: 0.75rem;
    }
    
    .files-info {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .files-header {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .files-header h3 {
        font-size: 1rem;
        flex: 1;
    }
    
    .remove-all-files {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .files-list {
        max-height: 200px;
        gap: 0.5rem;
    }
    
    .file-item {
        padding: 0.75rem;
    }
    
    .file-item .file-details {
        gap: 0.75rem;
    }
    
    .file-item .file-details i {
        font-size: 1.25rem;
    }
    
    .file-item .file-details-text h4 {
        font-size: 0.9rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    .file-item .file-details-text p {
        font-size: 0.8rem;
    }
    
    .file-item .remove-file {
        width: 28px;
        height: 28px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra Small Devices (480px and below) */
@media (max-width: 480px) {
    .files-info {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .files-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .files-header h3 {
        font-size: 0.9rem;
        width: 100%;
    }
    
    .remove-all-files {
        align-self: flex-end;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .files-list {
        max-height: 150px;
        gap: 0.4rem;
    }
    
    .file-item {
        padding: 0.6rem;
    }
    
    .file-item .file-details {
        gap: 0.5rem;
    }
    
    .file-item .file-details i {
        font-size: 1.1rem;
    }
    
    .file-item .file-details-text h4 {
        font-size: 0.85rem;
    }
    
    .file-item .file-details-text p {
        font-size: 0.75rem;
    }
    
    .file-item .remove-file {
        width: 24px;
        height: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .filters {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select,
    .search-input input {
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .jobs-table {
        min-width: 800px;
    }

    /* Responsive adjustments for upload section */
    .upload-section {
        padding: 1.5rem 1rem;
    }
    
    .upload-card {
        padding: 2rem 1.5rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-header h2 {
        font-size: 1.5rem;
    }
    
    .file-details {
        flex-direction: column;
        text-align: center;
    }
    
    .remove-file {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-header,
    .stats-section,
    .jobs-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Job Checkbox */
.job-checkbox {
    text-align: center;
    width: 50px;
}

.job-select-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Select All Checkbox */
#selectAllJobs {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Progress Bar Styles */
.progress-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.progress-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    min-width: 3rem;
    text-align: right;
}

/* Processing status specific styles */
.status-display-card.processing .progress-section {
    display: block !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .progress-bar-container {
        width: 100%;
    }
    
    .progress-percentage {
        min-width: 2.5rem;
    }
}

/* Premium Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.6); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Statistics Overview Section */
.stats-overview-section {
    margin: 1rem 2rem;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease-out;
}

.stats-header {
    text-align: center;
    margin-bottom: 1rem;
}

.stats-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #eeeeee;
    margin-bottom: 0.25rem;
}

.stats-header p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Download Valid Emails Button */
.btn-download-valid {
    margin-right: 2rem;
}

.btn-download-valid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857, #059669);
}

.btn-download-valid:active {
    transform: translateY(0);
}

.btn-download-valid:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-download-valid i {
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 16px;
}

.stat-icon.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.valid {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon.risky {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-icon.invalid {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: #c8c8c8;
    font-size: 1.1rem;
    font-weight: 500;
}

.stats-loading i {
    font-size: 1.5rem;
    color: #c8c8c8;
}

/* Mobile responsive for stats */
@media (max-width: 768px) {
    .stats-overview-section {
        margin: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .stats-header h2 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .stat-content p {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-content h3 {
        font-size: 1.25rem;
    }
}
