:root {
    --primary: #3b82f6; /* Blue 500 */
    --primary-hover: #2563eb; /* Blue 600 */
    --success: #10b981;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --bg-dark: #020617; /* Slate 950 to match index */
    --card-bg: rgba(15, 23, 42, 0.6); /* Slate 900 Glass */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
}

.app-container {
    width: 95%;
    max-width: 1400px;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-transform: uppercase;
}

.logo h1 span {
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.desc {
    color: #94a3b8;
    font-size: 1.25rem;
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.6;
}

main {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
}

.drop-zone h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.drop-zone p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
}

.hidden {
    display: none;
}

.status-container {
    padding: 3rem;
    text-align: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--border);
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 1rem;
    animation: rotation 1s linear infinite;
}

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

.progress-bar-wrapper {
    width: 60%;
    max-width: 400px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin: 1rem auto 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.result-container {
    animation: fadeIn 0.5s ease;
}

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

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    max-height: 70vh;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    white-space: nowrap;
}

th {
    background: rgba(30, 41, 59, 0.95);
    padding: 0.75rem 1rem;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    padding: 0;
    border: none;
}

.stat-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: none;
}

.stat-card:hover {
    transform: none;
    background: transparent;
}

.stat-icon {
    font-size: 1.2rem;
    background: transparent;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.stat-info {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.stat-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}



.logo-img {
    height: 6rem;
    width: auto;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

footer {
    margin-top: 4rem;
    padding-bottom: 3rem;
    text-align: center;
}

.footer-disclaimer {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    color: var(--success);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-credits {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-credits strong {
    color: var(--text-main);
}

