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


/* =========================================================
   GLOBAL
   ========================================================= */

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

:root {
    --cyan: #00e5ff;
    --cyan-dark: #00c9e8;
    --blue: #3b42c4;
    --purple: #7c3aed;

    --dark: #111827;
    --dark-soft: #374151;

    --gray: #6b7280;
    --gray-light: #9ca3af;

    --border: #e5e7eb;
    --border-light: #edf0f4;

    --red: #ff4d4f;

    --white: #ffffff;

    --shadow:
        0 20px 40px rgba(0, 0, 0, 0.15);

    --radius: 24px;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--dark);

    background:
        linear-gradient(
            135deg,
            #00e5ff 0%,
            #15bde9 35%,
            #3b42c4 100%
        );

    overflow-x: hidden;
}


/* =========================================================
   BACKGROUND PATTERN
   ========================================================= */

.background-pattern {
    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -1;

    opacity: 0.10;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='3' opacity='.8'%3E%3Cpath d='M51 108h75c12 0 21-8 21-19 0-11-8-19-19-20-3-16-16-27-32-27-13 0-24 8-29 20-2-1-5-1-8-1-13 0-24 10-24 23 0 13 7 24 16 24z'/%3E%3Cpath d='M90 68v29M78 84l12-12 12 12'/%3E%3C/g%3E%3C/svg%3E");

    background-size: 180px 180px;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    width: 100%;

    padding: 28px 42px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.brand {
    display: flex;

    align-items: center;

    gap: 12px;

    color: white;
}


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

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.95);

    color: #159bd7;

    font-size: 23px;

    font-weight: 800;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);
}


.brand-icon span {
    transform: translateY(-1px);
}


.brand-text {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.brand-text strong {
    font-size: 18px;

    font-weight: 800;

    letter-spacing: -0.3px;
}


.brand-text small {
    font-size: 11px;

    opacity: 0.8;
}


.logout-button {
    color: white;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    padding: 10px 18px;

    border-radius: 999px;

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    background:
        rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(10px);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.logout-button:hover {
    background:
        rgba(255, 255, 255, 0.22);

    transform:
        translateY(-2px);
}


/* =========================================================
   MAIN DASHBOARD
   ========================================================= */

.dashboard {
    width:
        min(
            1120px,
            calc(100% - 40px)
        );

    margin:
        25px auto 60px;
}


/* =========================================================
   MAIN WHITE CARD
   ========================================================= */

.upload-card {
    width: 100%;

    background: #ffffff;

    border-radius: var(--radius);

    padding: 32px;

    box-shadow: var(--shadow);

    animation:
        cardAppear 0.55s ease both;
}


@keyframes cardAppear {

    from {
        opacity: 0;

        transform:
            translateY(15px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   UPLOAD HEADER
   ========================================================= */

.upload-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 28px;
}


.upload-header h1 {
    color: #111827;

    font-size: 24px;

    font-weight: 700;

    letter-spacing: -0.5px;
}


.upload-header p {
    margin-top: 7px;

    color: #6b7280;

    font-size: 13px;
}


.close-button {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    color: #6b7280;

    font-size: 23px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.close-button:hover {
    background: #f3f4f6;

    color: #111827;
}


/* =========================================================
   TWO COLUMN LAYOUT
   ========================================================= */

.upload-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 28px;
}


.dropzone-column,
.files-column {
    min-width: 0;
}


/* =========================================================
   DROPZONE
   ========================================================= */

.dropzone {
    min-height: 370px;

    padding: 35px 25px;

    border:
        2px dashed
        #d1d5db;

    border-radius: 16px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.dropzone:hover,
.dropzone.dragging {
    border-color: var(--cyan);

    background:
        rgba(0, 229, 255, 0.045);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 25px
        rgba(0, 210, 255, 0.08);
}


.dropzone input {
    display: none;
}


/* =========================================================
   CLOUD ICON
   ========================================================= */

.dropzone-icon {
    margin-bottom: 20px;

    height: 70px;

    display: flex;

    align-items: flex-end;

    justify-content: center;
}


.large-cloud {
    width: 78px;
    height: 62px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 27px;

    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #00e5ff,
            #00b8ef
        );

    border-radius:
        16px
        18px
        13px
        13px;

    box-shadow:
        0 12px 25px
        rgba(0, 200, 240, 0.25);
}


.large-cloud::before {
    content: "";

    position: absolute;

    width: 38px;
    height: 38px;

    top: -17px;
    left: 20px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #00e5ff,
            #00b8ef
        );
}


.large-cloud::after {
    content: "";

    position: absolute;

    width: 32px;
    height: 30px;

    top: -5px;
    left: 6px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #00e5ff,
            #00b8ef
        );
}


.large-cloud span {
    position: relative;

    z-index: 2;

    margin-top: 4px;
}


/* =========================================================
   DROPZONE TEXT
   ========================================================= */

.dropzone h2 {
    color: #111827;

    font-size: 16px;

    font-weight: 600;
}


.or-divider {
    width: 100%;

    margin: 17px 0;

    display: flex;

    align-items: center;

    gap: 12px;

    color: #9ca3af;

    font-size: 11px;
}


.or-divider::before,
.or-divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: #e5e7eb;
}


.browse-button {
    padding: 10px 22px;

    border:
        1.5px solid
        #00d2ff;

    border-radius: 999px;

    color: #00aeda;

    background: white;

    font-size: 13px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.dropzone:hover .browse-button {
    background: #00d2ff;

    color: white;

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 15px
        rgba(0, 210, 255, 0.18);
}


.selected-files {
    max-width: 90%;

    margin-top: 14px;

    color: #6b7280;

    font-size: 11px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.upload-info {
    display: flex;

    flex-direction: column;

    gap: 5px;

    margin-top: 24px;

    color: #9ca3af;

    font-size: 11px;
}


.upload-info span:last-child {
    font-size: 10px;
}


/* =========================================================
   UPLOAD BUTTON
   ========================================================= */

.upload-submit {
    width: 100%;

    margin-top: 15px;

    padding: 13px;

    border: none;

    border-radius: 12px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #00dfff,
            #4266df
        );

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(31, 177, 225, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.upload-submit:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(31, 177, 225, 0.30);
}


.upload-submit:active {
    transform:
        translateY(0);
}


/* =========================================================
   FILE STATUS COLUMN
   ========================================================= */

.files-column {
    padding: 4px 2px;
}


.files-heading {
    display: flex;

    justify-content: space-between;

    margin-bottom: 17px;
}


.files-heading h2 {
    color: #111827;

    font-size: 16px;

    font-weight: 700;
}


.files-heading span {
    display: block;

    margin-top: 5px;

    color: #9ca3af;

    font-size: 11px;
}


/* =========================================================
   DYNAMIC PROGRESS LIST
   ========================================================= */

.progress-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.progress-list:empty {
    display: none;
}


/* =========================================================
   INDIVIDUAL PROGRESS ITEM
   ========================================================= */

.progress-item {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 15px;

    border:
        1px solid
        #edf0f4;

    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 4px 14px
        rgba(17, 24, 39, 0.04);

    animation:
        progressItemAppear 0.3s ease both;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.progress-item:hover {
    box-shadow:
        0 7px 20px
        rgba(17, 24, 39, 0.07);
}


@keyframes progressItemAppear {

    from {
        opacity: 0;

        transform:
            translateY(8px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   FILE INFORMATION
   ========================================================= */

.progress-content {
    flex: 1;

    min-width: 0;
}


.file-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 9px;
}


.file-name {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #374151;

    font-size: 12px;

    font-weight: 600;
}


.file-size {
    flex-shrink: 0;

    color: #9ca3af;

    font-size: 10px;
}


/* =========================================================
   PROGRESS BAR
   ========================================================= */

.progress-track {
    width: 100%;

    height: 6px;

    overflow: hidden;

    border-radius: 999px;

    background: #edf0f4;
}


.progress-bar {
    height: 100%;

    border-radius: inherit;

    transition:
        width 0.05s linear;
}


/* Cyan uploading state */

.progress-bar.upload-progress {
    background:
        linear-gradient(
            90deg,
            #00e5ff,
            #00b9c9
        );

    box-shadow:
        0 0 8px
        rgba(0, 229, 255, 0.25);
}


/* Purple completed state */

.progress-bar.complete {
    background:
        linear-gradient(
            90deg,
            #3769e8,
            #9338e8
        );

    box-shadow:
        0 0 8px
        rgba(124, 58, 237, 0.18);
}


/* =========================================================
   STATUS ICONS
   ========================================================= */

.status-icon {
    width: 29px;
    height: 29px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 13px;

    font-weight: 800;
}


/* Uploading */

.status-icon.loading {
    background: #e5faff;

    position: relative;
}


.status-icon.loading span {
    width: 15px;
    height: 15px;

    display: block;

    border:
        2px solid
        #00dfff;

    border-top-color:
        transparent;

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;
}


@keyframes spin {

    to {
        transform:
            rotate(360deg);
    }
}


/* Completed */

.status-icon.check {
    color: white;

    background:
        linear-gradient(
            135deg,
            #4266df,
            #7c3aed
        );

    animation:
        statusAppear 0.25s ease;
}


@keyframes statusAppear {

    from {
        opacity: 0;

        transform:
            scale(0.7);
    }

    to {
        opacity: 1;

        transform:
            scale(1);
    }
}


/* =========================================================
   FILE CANCEL BUTTON
   ========================================================= */

.file-action {
    width: 24px;
    height: 24px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    background: transparent;

    color: #9ca3af;

    font-family: inherit;

    font-size: 18px;

    line-height: 1;

    cursor: pointer;

    border-radius: 7px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.file-action:hover {
    background: #f3f4f6;

    color: #374151;

    transform:
        scale(1.05);
}


.file-action:active {
    transform:
        scale(0.92);
}


/* =========================================================
   STORED FILES
   ========================================================= */

.real-files {
    margin-top: 24px;

    padding-top: 20px;

    border-top:
        1px solid
        #e5e7eb;
}


.real-files-title {
    margin-bottom: 10px;

    color: #374151;

    font-size: 12px;

    font-weight: 700;
}


.stored-file {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px;

    border-radius: 11px;

    transition:
        background 0.2s ease;
}


.stored-file:hover {
    background: #f8fafc;
}


.stored-file-icon {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background: #eef8ff;

    font-size: 14px;
}


.stored-file-info {
    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.stored-file-info strong {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #374151;

    font-size: 11px;
}


.stored-file-info span {
    color: #9ca3af;

    font-size: 9px;
}


.stored-file-actions {
    display: flex;

    gap: 5px;
}


.stored-file-actions a,
.stored-file-actions button {
    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 7px;

    background: #f3f4f6;

    color: #6b7280;

    text-decoration: none;

    font-family: inherit;

    cursor: pointer;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.stored-file-actions a:hover {
    background: #e0f8ff;

    color: #00aeda;
}


.stored-file-actions button:hover {
    background: #fee2e2;

    color: #ef4444;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    padding: 12px 15px;

    margin-bottom: 18px;

    border-radius: 11px;

    font-size: 12px;

    font-weight: 500;
}


.alert.success {
    color: #087f9c;

    background:
        rgba(0, 229, 255, 0.10);

    border:
        1px solid
        rgba(0, 210, 255, 0.2);
}


.alert.error {
    color: #b42318;

    background: #fff1f0;

    border:
        1px solid
        #ffd6d3;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

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

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;
}


.login-wrapper {
    width: 100%;

    max-width: 430px;
}


.login-card {
    padding: 42px;

    background: white;

    border-radius: 24px;

    box-shadow:
        0 20px 40px
        rgba(0, 0, 0, 0.15);

    text-align: center;

    animation:
        cardAppear 0.55s ease both;
}


/* =========================================================
   LOGIN CLOUD
   ========================================================= */

.login-logo {
    display: flex;

    justify-content: center;

    margin-bottom: 22px;
}


.cloud-icon {
    width: 64px;
    height: 52px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #00e5ff,
            #3769e8
        );

    border-radius: 14px;

    font-size: 23px;

    font-weight: 800;

    box-shadow:
        0 10px 25px
        rgba(0, 200, 240, 0.25);
}


.cloud-icon::before {
    content: "";

    position: absolute;

    width: 31px;
    height: 31px;

    top: -13px;
    left: 16px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #00e5ff,
            #3769e8
        );
}


.cloud-icon span {
    position: relative;

    z-index: 2;
}


/* =========================================================
   LOGIN TEXT
   ========================================================= */

.login-card h1 {
    color: #111827;

    font-size: 25px;

    font-weight: 800;

    letter-spacing: -0.5px;
}


.login-subtitle {
    margin-top: 8px;

    color: #6b7280;

    font-size: 13px;
}


/* =========================================================
   LOGIN FORM
   ========================================================= */

.login-form {
    margin-top: 28px;

    text-align: left;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.form-group label {
    color: #374151;

    font-size: 12px;

    font-weight: 600;
}


.form-group input {
    width: 100%;

    padding: 13px 15px;

    border:
        1px solid
        #d1d5db;

    border-radius: 11px;

    outline: none;

    background: #ffffff;

    color: #111827;

    font-family: inherit;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-group input::placeholder {
    color: #9ca3af;
}


.form-group input:focus {
    border-color: #00cfe8;

    box-shadow:
        0 0 0 4px
        rgba(0, 229, 255, 0.10);
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.primary-button {
    width: 100%;

    margin-top: 17px;

    padding: 13px 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 11px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #00dfff,
            #4266df
        );

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(31, 177, 225, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.primary-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(31, 177, 225, 0.30);
}


.primary-button:active {
    transform:
        translateY(0);
}


.primary-button span {
    font-size: 17px;
}


/* =========================================================
   LOGIN FOOTER
   ========================================================= */

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

    color: #9ca3af;

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 850px) {

    .upload-layout {
        grid-template-columns: 1fr;
    }

    .dropzone {
        min-height: 320px;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .topbar {
        padding: 20px;
    }


    .dashboard {
        width:
            calc(100% - 24px);

        margin-top: 10px;
    }


    .upload-card {
        padding: 22px;

        border-radius: 20px;
    }


    .upload-header h1 {
        font-size: 21px;
    }


    .upload-header p {
        font-size: 12px;
    }


    .dropzone {
        min-height: 300px;

        padding: 25px 15px;
    }


    .login-card {
        padding: 32px 25px;

        border-radius: 20px;
    }


    .progress-item {
        padding: 12px;
    }


    .file-name {
        max-width: 150px;
    }

}


/* =========================================================
   RESPONSIVE - SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .topbar {
        padding:
            18px 14px;
    }


    .brand-text small {
        display: none;
    }


    .brand-icon {
        width: 40px;
        height: 40px;
    }


    .logout-button {
        padding:
            8px 13px;
    }


    .dashboard {
        width:
            calc(100% - 18px);
    }


    .upload-card {
        padding: 17px;

        border-radius: 18px;
    }


    .upload-header {
        margin-bottom: 20px;
    }


    .dropzone {
        min-height: 285px;

        padding:
            22px 12px;
    }


    .large-cloud {
        transform:
            scale(0.9);
    }


    .progress-item {
        gap: 8px;
    }


    .status-icon {
        width: 27px;
        height: 27px;
    }


    .file-name {
        max-width: 120px;
    }


    .login-card {
        padding:
            30px 20px;
    }

}
