:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;

    --background: #f8fafc;
    --surface: #ffffff;

    --text: #0f172a;
    --muted: #64748b;

    --border: #e2e8f0;

    --radius: 12px;
}


/* Reset */

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


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);
    color: var(--text);

    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}


/* Navbar */

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}


.navbar-content {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.brand {
    font-size: 20px;
    font-weight: 700;
}


.navbar nav {
    display: flex;
    gap: 10px;
}


/* Buttons */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 9px 16px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}


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


.btn-primary:hover {
    background: var(--primary-dark);
}


.btn-outline {
    border: 1px solid var(--border);
    background: white;
}


.btn-outline:hover {
    background: #f1f5f9;
}


.btn-large {
    padding: 12px 20px;
}


/* Badge */

.badge {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 999px;

    background: #eef2ff;

    color: var(--primary);

    font-size: 13px;
    font-weight: 600;
}


/* Hero */

.hero {
    padding: 100px 0;
}


.hero-content {
    max-width: 760px;

    text-align: center;

    margin: 0 auto;
}


.hero h1 {
    margin-top: 20px;

    font-size: clamp(38px, 7vw, 64px);

    line-height: 1.1;
}


.hero h1 span {
    color: var(--primary);
}


.hero p {
    max-width: 620px;

    margin: 20px auto;

    color: var(--muted);

    font-size: 18px;
}


.hero-actions {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 30px;
}


/* Features */

.features {
    padding: 80px 0;

    background: white;
}


.section-heading {
    text-align: center;

    max-width: 600px;

    margin: 0 auto 40px;
}


.section-heading h2 {
    margin: 12px 0 8px;

    font-size: 32px;
}


.section-heading p {
    color: var(--muted);
}


.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.feature-card {
    padding: 28px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);
}


.feature-icon {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 10px;

    background: #eef2ff;

    color: var(--primary);

    font-size: 22px;

    font-weight: bold;
}


.feature-card h3 {
    margin-bottom: 8px;
}


.feature-card p {
    color: var(--muted);
}


/* Footer */

.footer {
    padding: 30px 0;

    border-top: 1px solid var(--border);

    background: white;

    text-align: center;

    color: var(--muted);

    font-size: 14px;
}


/* Responsive */

@media (max-width: 700px) {

    .navbar-content {
        min-height: 60px;
    }


    .hero {
        padding: 70px 0;
    }


    .hero p {
        font-size: 16px;
    }


    .hero-actions {
        flex-direction: column;
    }


    .hero-actions .btn {
        width: 100%;
    }


    .feature-grid {
        grid-template-columns: 1fr;
    }

}


/* Authentication */

.auth-page {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;
}


.auth-card {
    width: 100%;
    max-width: 420px;

    padding: 35px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.05);
}


.auth-card .brand {
    display: block;

    margin-bottom: 30px;

    color: var(--primary);
}


.auth-card h1 {
    margin-bottom: 8px;

    font-size: 28px;
}


.auth-card > p {
    color: var(--muted);

    margin-bottom: 25px;
}


.auth-card form {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.auth-card label {
    margin-top: 5px;

    font-size: 14px;

    font-weight: 600;
}


.auth-card input {
    width: 100%;

    padding: 12px;

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    font-size: 15px;
}


.auth-card input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(79, 70, 229, 0.1);
}


.auth-card button {
    width: 100%;

    margin-top: 12px;

    cursor: pointer;
}


.auth-footer {
    margin-top: 25px;

    text-align: center;

    font-size: 14px;
}


.auth-footer a {
    color: var(--primary);

    font-weight: 600;
}


.auth-message {
    margin-top: 15px;

    font-size: 14px;
}

/* Dashboard */

.dashboard {
    padding: 50px 0;
}


.dashboard-header {
    margin-bottom: 30px;
}


.dashboard-header h1 {
    margin-top: 12px;

    font-size: 36px;
}


.dashboard-header p {
    color: var(--muted);
}


/* Upload */

.upload-section {
    margin-bottom: 30px;
}


.upload-card {
    padding: 35px;

    background: white;

    border: 2px dashed var(--border);

    border-radius: var(--radius);

    text-align: center;
}


.upload-card h2 {
    margin-bottom: 5px;
}


.upload-card p {
    color: var(--muted);
}


.upload-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 12px;

    background: #eef2ff;

    color: var(--primary);

    font-size: 26px;

    font-weight: bold;
}


.upload-card label {
    margin-top: 20px;

    cursor: pointer;
}


.upload-status {
    margin-top: 15px;

    min-height: 24px;

    font-size: 14px;
}


/* Files */

.files-section {
    padding: 25px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);
}


.files-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}


.files-header h2 {
    font-size: 22px;
}


.file-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.file-item {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 15px;

    border: 1px solid var(--border);

    border-radius: 10px;
}


.file-info {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}


.file-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f1f5f9;
}


.file-info strong {
    display: block;

    max-width: 350px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.file-info small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;
}


.file-actions {
    display: flex;

    gap: 8px;

    flex-shrink: 0;
}


.btn-danger {
    border: 1px solid #fecaca;

    background: #fef2f2;

    color: #dc2626;

    cursor: pointer;
}


.btn-danger:hover {
    background: #fee2e2;
}


.empty-state {
    padding: 35px;

    color: var(--muted);

    text-align: center;
}


/* Mobile */

@media (max-width: 700px) {

    .dashboard {
        padding: 30px 0;
    }


    .files-header {
        align-items: flex-start;
    }


    .file-item {
        align-items: flex-start;

        flex-direction: column;
    }


    .file-info {
        width: 100%;
    }


    .file-info strong {
        max-width: 220px;
    }


    .file-actions {
        width: 100%;
    }


    .file-actions .btn {
        flex: 1;
    }

}

.upload-hint {
    margin-top: 8px;

    font-size: 12px;

    color: #94a3b8 !important;
}


.upload-status {
    margin-top: 15px;

    min-height: 24px;

    font-size: 14px;

    color: var(--muted);
}