@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Base Colors - Dark Minimal */
    --bg-page: #050505;
    --bg-card: #0F0F0F;
    --bg-input: #171717;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 255, 255, 0.2);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    /* Accents - Minimal Elegant (Indigo/Sky) */
    --primary: #b1b1b1;
    --primary-hover: #e0e0e0;
    --primary-glow: rgba(255, 255, 255, 0.531);

    /* Status Colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.03em;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    max-width: 100%;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.mt-4 {
    margin-top: 1rem;
}

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    word-spacing: 0.5em;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 1s ease;
}

.logo:hover {
    cursor: default;
    background-position: right center;
    -webkit-box-reflect: below -20px linear-gradient(transparent, rgba(255, 255, 255, 0.15));
}

.nav-links div {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Tool Container */
.tool-container {
    max-width: 70%;
    height: fit-content;
    margin: 0 auto 100px;
    padding-top: 30px;
}

.results-container {
    max-width: 95%;
    margin: auto;
}

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-focus);
}

.card-header {
    display: flex;
    align-items: center;
    word-spacing: 0.25em;
    gap: 16px;
    margin-bottom: 16px;
}

.card-info {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1e1e;
    border-radius: 10px;
    font-size: 1.2rem;
}

.upload-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.upload-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Custom File Upload */
.custom-file-upload {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.custom-file-upload:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.custom-file-upload span {
    color: var(--text-secondary);
    font-weight: 500;
}

.custom-file-upload input {
    display: none;
}

.status-text {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--primary);
    min-height: 20px;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-page);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    opacity: 0.75;
}

.btn-primary:hover {
    opacity: 1;

}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-focus);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

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

.btn-large {
    font-size: 1.1rem;
    padding: 18px 48px;
    background: linear-gradient(135deg, white 0%, #e2e8f0 100%);
}

/* Info Panel */
.info-panel {
    background: rgba(203, 203, 203, 0.1);
    border-left: 3px solid var(--primary);
    padding: 20px;
    border-radius: var(--radius-sm);
    color: #b5b5b5;
    margin-bottom: 40px;
    font-size: 0.95rem;
    z-index: 10;
}

/* Controls */
.controls-section {
    display: flex;
    /* Script sets this to flex, we ensure direction is column */
    flex-direction: column;
    width: 100%;
}

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

.filters-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.search-wrapper {
    flex: 1 1 300px;
}

.search-wrapper input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 10px 16px;
    border-radius: 50px;
    color: var(--text-primary);
    font-family: inherit;
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--text-secondary);
}

.filter-pills {
    display: flex;
    gap: 8px;
}

.pill {
    background: transparent;
    border: none;
    padding: 8px 16px;
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pill:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.pill.active {
    background: var(--text-primary);
    color: var(--bg-page);
}

/* Table */
.results-table-wrapper {
    padding: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: auto;
}

table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    font-size: 0.9rem;

}

thead {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
}

th {
    text-align: left;
    padding: 16px 24px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

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

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

/* Helper Classes */
.status-success {
    color: var(--success);
    font-weight: 600;
}

.status-error {
    color: var(--error);
    font-weight: 600;
}

.status-warning {
    color: var(--warning);
    font-weight: 600;
}

.footer {
    margin-top: 100px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    width: -webkit-fill-available;
}

.footer p {
    color: var(--text-secondary);
    word-spacing: 1rem;
}

.footer p:nth-child(3) {
    font-weight: 900;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
