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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

html.light body {
    background: #f8fafc;
    color: #1e293b;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

html.light body::before {
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
    flex: 1;
}

header {
    margin-bottom: 40px;
}

.header-content {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
}

.theme-toggle {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.header-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.3rem;
    font-weight: 500;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

section {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

html.light section {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.section-header h2 {
    color: #f1f5f9;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

html.light .section-header h2 {
    color: #1e293b;
}

.section-header h2 svg {
    color: #6366f1;
}

.job-count {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.section-actions {
    display: flex;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.form-group label svg {
    color: #6366f1;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    font-family: inherit;
    font-weight: 500;
}

html.light .form-group input {
    background: white;
    color: #1e293b;
    border-color: rgba(59, 130, 246, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.form-group input::placeholder {
    color: #64748b;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 30px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    color: white;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.btn-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border-color: transparent;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.5);
}

html.light .table-container {
    background: white;
    border-color: rgba(59, 130, 246, 0.2);
}

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

table th,
table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

table th {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 700;
    color: #f1f5f9;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody tr {
    transition: all 0.2s ease;
}

table tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

table td {
    color: #cbd5e1;
    font-weight: 600;
}

html.light table td {
    color: #475569;
}

table td .btn {
    display: inline-flex;
    margin-right: 8px;
}

table td .btn:last-child {
    margin-right: 0;
}

.no-data {
    text-align: center;
    padding: 80px 20px;
}

.no-data svg {
    color: #475569;
    margin-bottom: 20px;
}

.no-data p {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #94a3b8;
}

.no-data small {
    color: #64748b;
    font-size: 0.95rem;
}

.explanation-section {
    grid-column: 1 / -1;
}

.explanation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.explanation-card {
    background: rgba(99, 102, 241, 0.05);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.explanation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

.explanation-card h3 {
    color: #f1f5f9;
    margin-bottom: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

html.light .explanation-card h3 {
    color: #1e293b;
}

.explanation-card h3 svg {
    color: #6366f1;
}

.explanation-card p {
    color: #cbd5e1;
    line-height: 1.8;
    font-weight: 500;
}

html.light .explanation-card p {
    color: #475569;
}

.explanation-card ol {
    margin-left: 20px;
    color: #cbd5e1;
}

.explanation-card li {
    margin-bottom: 12px;
    line-height: 1.8;
    font-weight: 500;
}

footer {
    margin-top: auto;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    position: relative;
    z-index: 1;
}

html.light footer {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin: 0;
    font-size: 1rem;
}

.footer-name {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.processing-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    backdrop-filter: blur(20px);
    padding: 80px 0;
    margin-bottom: 50px;
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 35px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.processing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card-extended {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.stat-card-extended:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.stat-icon svg {
    color: white;
    width: 35px;
    height: 35px;
}

.stat-number-extended {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label-extended {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 700;
}

.processing-timeline {
    position: relative;
    padding-left: 50px;
}

.processing-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6366f1, #a855f7, #ec4899);
    border-radius: 2px;
}

.processing-step-enhanced {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.processing-step-enhanced:hover {
    transform: translateX(10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.processing-step-enhanced::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 35px;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: 5px solid #0f172a;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.5);
}

.step-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.step-title-enhanced {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
}

.step-number-enhanced {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.step-content-enhanced {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 500;
}

.slot-visualization-enhanced {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.slot-enhanced {
    width: 90px;
    height: 90px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5);
}

.slot-enhanced.occupied {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border-color: #6366f1;
    transform: scale(1.15);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

.slot-enhanced.empty {
    background: rgba(30, 41, 59, 0.5);
    color: #64748b;
}

.slot-enhanced.highlighted {
    animation: pulse 2s infinite;
    border-color: #ec4899;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6);
}

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

.slot-label-enhanced {
    font-size: 0.75rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.slot-value-enhanced {
    font-weight: 900;
    font-size: 1.1rem;
}

.data-list {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    border-left: 5px solid #6366f1;
}

.data-list h4 {
    color: #f1f5f9;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1rem;
}

.data-list ul {
    list-style: none;
    padding: 0;
}

.data-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    color: #cbd5e1;
    font-weight: 600;
}

.data-list li:last-child {
    border-bottom: none;
}

.no-data-enhanced {
    text-align: center;
    padding: 100px 20px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.no-data-enhanced svg {
    color: #475569;
    margin-bottom: 25px;
}

.no-data-enhanced h3 {
    color: #94a3b8;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.no-data-enhanced p {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
}

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

.fade-in {
    animation: fadeIn 0.6s ease;
}

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

@media (max-width: 768px) {
    .header-text h1,
    .hero-title {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .processing-timeline {
        padding-left: 35px;
    }
    
    .processing-timeline::before {
        left: 12px;
    }
    
    .processing-step-enhanced::before {
        left: -28px;
        width: 20px;
        height: 20px;
    }
    
    .slot-enhanced {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .header-text h1,
    .hero-title {
        font-size: 2rem;
    }
    
    section {
        padding: 25px;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
}
