/* Premium Styles for Saskaitu Tikrintojas (Vanilla CSS) */
:root {
    --bg-color: #060813;
    --card-bg: rgba(18, 22, 41, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(99, 102, 241, 0.35);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Brand Colors */
    --primary-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --orange: #f97316;
    --orange-bg: rgba(249, 115, 22, 0.15);
    --info: #06b6d4;
    --info-bg: rgba(6, 182, 212, 0.15);
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Background blur circles */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glass-bg::before,
.glass-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.glass-bg::before {
    width: 500px;
    height: 500px;
    background: #6366f1;
    top: -10%;
    right: 5%;
}

.glass-bg::after {
    width: 600px;
    height: 600px;
    background: #ec4899;
    bottom: -10%;
    left: -5%;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.8s ease;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.logo-icon {
    font-size: 38px;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
}

header h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-family: 'Outfit', sans-serif;
}

header h1 span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    background: var(--primary-grad);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto;
}

/* Upload Panel */
.upload-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
    transition: var(--transition);
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
}

.drop-zone {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition);
    overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: none;
}

.drop-zone-content .icon {
    font-size: 48px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.drop-zone:hover .drop-zone-content .icon {
    transform: translateY(-5px);
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.drop-zone-content h3 {
    font-size: 18px;
    font-weight: 600;
}

.drop-zone-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.file-info {
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.drop-zone.has-file {
    border-style: solid;
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.03);
}

.drop-zone.has-file .drop-zone-content .icon {
    color: var(--success);
}

.action-bar {
    display: flex;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-grad);
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:not(:disabled):hover {
    transform: translateY(-2px);
    background: #0ea5e9;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

/* Dashboard Panel */
.dashboard-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-header .actions {
        width: 100%;
        display: flex;
        gap: 12px;
    }
    .dashboard-header .actions .btn {
        flex: 1;
        justify-content: center;
    }
}

.status-info h2 {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

.job-id-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.dashboard-header .actions {
    display: flex;
    gap: 12px;
}

/* Badges */
.badge {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
}

.badge-processing {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-completed {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-failed {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 32px;
}

.progress-bar-wrapper {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-grad);
    border-radius: 5px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bg-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.bg-purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.bg-green { background: var(--success-bg); color: var(--success); }
.bg-red { background: var(--danger-bg); color: var(--danger); }
.bg-yellow { background: var(--warning-bg); color: var(--warning); }
.bg-orange { background: var(--orange-bg); color: var(--orange); }

.stat-details h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
}

.stat-details p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Results Section */
.results-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
}

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

@media (max-width: 992px) {
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
}

.results-header h3 {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .results-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

.search-box {
    position: relative;
    flex-grow: 1;
    min-width: 260px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.filter-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.filter-tab:hover:not(.active) {
    color: white;
}

.tab-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    color: white;
}

/* Table styling */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.15);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.results-table th, .results-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.results-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.results-table tbody tr {
    transition: var(--transition);
}

.results-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.results-table .empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-secondary);
    font-size: 15px;
}

.results-table .empty-state i {
    margin-right: 8px;
}

/* Row-level badges */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-indicator i {
    font-size: 10px;
}

.status-MATCH {
    background: var(--success-bg);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.status-MISMATCH {
    background: var(--danger-bg);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.status-MISSING_IN_EXCEL {
    background: var(--warning-bg);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.status-MISSING_IN_PDF {
    background: var(--orange-bg);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.1);
}

.status-ERROR {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.text-success { color: var(--success); font-weight: 600; }
.text-danger { color: var(--danger); font-weight: 600; }
.text-muted { color: var(--text-muted); }

/* Footer */
footer {
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

.footer-content h4 {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.security-note {
    min-width: 280px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: var(--radius-sm);
    align-self: flex-start;
}

.security-note i {
    color: var(--primary);
    margin-right: 6px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Workspace Tabs Container */
.tabs-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    animation: fadeInDown 0.8s ease;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: white;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.08);
}

/* History panel styles */
.history-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.btn-icon-only {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-weight: 600;
}

.btn-icon-only:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-icon-only.btn-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.btn-icon-only.btn-view:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
    color: #818cf8;
}

