/* =====================================================
   IMPULSESHARE
   GLOBAL STYLES
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root {

    --primary: #111827;
    --primary-light: #1f2937;

    --accent: #2563eb;

    --accent-hover: #1d4ed8;

    --bg: #f5f7fb;

    --card: #ffffff;

    --border: #e5e7eb;

    --text: #111827;

    --muted: #6b7280;

    --success: #16a34a;

}


body {

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);

    color: var(--text);

    min-height: 100vh;

}


/* =====================================================
   AUTH
===================================================== */

.auth-body {

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 30px;

}


.auth-container {

    width: 100%;

    max-width: 430px;

}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 25px;

}


.brand-icon {

    width: 48px;

    height: 48px;

    border-radius: 14px;

    background: var(--primary);

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 24px;

    font-weight: 800;

}


.brand h1 {

    font-size: 22px;

}


.brand p {

    color: var(--muted);

    font-size: 13px;

}


.auth-card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 35px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.06);

}


.auth-card h2 {

    font-size: 27px;

    margin-bottom: 7px;

}


.subtitle {

    color: var(--muted);

    margin-bottom: 28px;

}


.form-group {

    margin-bottom: 20px;

}


.form-group label {

    display: block;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 8px;

}


.form-group label span {

    color: var(--muted);

    font-weight: 400;

}


input,
textarea {

    width: 100%;

    border: 1px solid var(--border);

    border-radius: 11px;

    padding: 13px 14px;

    font-size: 14px;

    outline: none;

    transition: .2s;

}


input:focus,
textarea:focus {

    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(37,99,235,.1);

}


textarea {

    resize: vertical;

}


.primary-btn {

    width: 100%;

    border: 0;

    background: var(--accent);

    color: white;

    padding: 14px 18px;

    border-radius: 11px;

    font-weight: 700;

    font-size: 14px;

    cursor: pointer;

    transition: .2s;

}


.primary-btn:hover {

    background: var(--accent-hover);

}


.primary-btn:disabled {

    opacity: .6;

    cursor: not-allowed;

}


.error-message {

    color: #dc2626;

    font-size: 13px;

    margin-top: 12px;

}


.powered {

    text-align: center;

    color: var(--muted);

    font-size: 12px;

    margin-top: 20px;

}


/* =====================================================
   HEADER
===================================================== */

.topbar {

    height: 72px;

    background: white;

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 5%;

}


.brand.small {

    margin: 0;

}


.brand.small .brand-icon {

    width: 40px;

    height: 40px;

    border-radius: 11px;

    font-size: 19px;

}


.brand.small h1 {

    font-size: 18px;

}


.brand.small span {

    color: var(--muted);

    font-size: 11px;

}


.header-right {

    display: flex;

    align-items: center;

    gap: 15px;

}


#userEmail {

    color: var(--muted);

    font-size: 13px;

}


.logout-btn {

    border: 1px solid var(--border);

    background: white;

    padding: 9px 15px;

    border-radius: 9px;

    cursor: pointer;

}


/* =====================================================
   DASHBOARD
===================================================== */

.dashboard {

    width: 90%;

    max-width: 1000px;

    margin: 45px auto;

}


.page-heading {

    margin-bottom: 25px;

}


.page-heading h2 {

    font-size: 28px;

    margin-bottom: 5px;

}


.page-heading p {

    color: var(--muted);

}


.upload-card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 30px;

    box-shadow:
        0 8px 30px rgba(0,0,0,.04);

}


.file-input-wrapper {

    border: 2px dashed #d1d5db;

    border-radius: 12px;

    padding: 20px;

    background: #fafafa;

}


.file-input-wrapper input {

    border: 0;

    padding: 0;

}


.file-info {

    margin-top: 10px;

    font-size: 13px;

    color: var(--muted);

}


.file-info span {

    margin-left: 8px;

}


.progress-container {

    margin-top: 20px;

}


.progress-bar {

    height: 8px;

    background: #e5e7eb;

    border-radius: 20px;

    overflow: hidden;

}


.progress-fill {

    height: 100%;

    width: 0;

    background: var(--accent);

    transition: width .2s;

}


#progressText {

    text-align: center;

    font-size: 12px;

    margin-top: 6px;

    color: var(--muted);

}


/* =====================================================
   SHARE RESULT
===================================================== */

.share-result {

    text-align: center;

    padding: 20px 0;

}


.success-icon {

    width: 55px;

    height: 55px;

    border-radius: 50%;

    background: #dcfce7;

    color: var(--success);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    margin: 0 auto 15px;

}


.share-result h3 {

    margin-bottom: 5px;

}


.share-result p {

    color: var(--muted);

    font-size: 14px;

}


.share-link-box {

    display: flex;

    gap: 8px;

    margin: 20px 0;

}


.share-link-box input {

    background: #f9fafb;

}


.copy-btn {

    border: 0;

    background: var(--primary);

    color: white;

    padding: 0 20px;

    border-radius: 10px;

    cursor: pointer;

}


.result-actions {

    display: flex;

    gap: 10px;

    justify-content: center;

}


.secondary-btn {

    border: 1px solid var(--border);

    background: white;

    color: var(--text);

    padding: 10px 16px;

    border-radius: 9px;

    text-decoration: none;

    cursor: pointer;

    font-size: 13px;

}


/* =====================================================
   FILE LIST
===================================================== */

.files-section {

    margin-top: 40px;

}


.section-heading {

    margin-bottom: 15px;

}


.section-heading h2 {

    font-size: 20px;

}


.section-heading p {

    color: var(--muted);

    font-size: 13px;

}


.file-item {

    background: white;

    border: 1px solid var(--border);

    border-radius: 13px;

    padding: 15px;

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 10px;

}


.file-icon {

    width: 42px;

    height: 42px;

    border-radius: 10px;

    background: #eff6ff;

    display: flex;

    align-items: center;

    justify-content: center;

}


.file-details {

    flex: 1;

}


.file-details strong {

    display: block;

    font-size: 14px;

    word-break: break-word;

}


.file-details span {

    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-top: 4px;

}


.file-actions {

    display: flex;

    gap: 6px;

}


.small-btn {

    text-decoration: none;

    color: var(--primary);

    background: #f3f4f6;

    border: 0;

    padding: 8px 11px;

    border-radius: 8px;

    font-size: 11px;

    cursor: pointer;

}


.empty-state,
.loading {

    text-align: center;

    padding: 35px;

    color: var(--muted);

}


/* =====================================================
   DOWNLOAD PAGE
===================================================== */

.download-body {

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 30px;

}


.download-wrapper {

    width: 100%;

    max-width: 570px;

}


.download-brand {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin-bottom: 25px;

}


.download-brand h1 {

    font-size: 23px;

}


.download-brand p {

    color: var(--muted);

    font-size: 12px;

}


.download-card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 40px;

    text-align: center;

    box-shadow:
        0 15px 45px rgba(0,0,0,.06);

}


.download-icon {

    font-size: 55px;

    margin-bottom: 12px;

}


.available {

    display: inline-block;

    background: #dcfce7;

    color: #15803d;

    padding: 5px 10px;

    border-radius: 30px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .5px;

}


.download-card h2 {

    font-size: 21px;

    margin: 15px 0;

    word-break: break-word;

}


.download-info {

    display: flex;

    justify-content: center;

    gap: 8px;

    color: var(--muted);

    font-size: 13px;

}


.message-box {

    text-align: left;

    background: #f9fafb;

    border: 1px solid var(--border);

    padding: 15px;

    border-radius: 12px;

    margin: 25px 0;

}


.message-box strong {

    font-size: 12px;

}


.message-box p {

    color: #4b5563;

    font-size: 13px;

    margin-top: 7px;

    white-space: pre-wrap;

}


.download-btn {

    display: block;

    text-decoration: none;

    margin-top: 25px;

}


.download-note {

    color: var(--muted);

    font-size: 11px;

    margin-top: 18px;

}


.error-icon {

    width: 55px;

    height: 55px;

    border-radius: 50%;

    background: #fee2e2;

    color: #dc2626;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    font-weight: bold;

    margin: auto;

}


/* =====================================================
   SPINNER
===================================================== */

.spinner {

    width: 35px;

    height: 35px;

    border: 3px solid #e5e7eb;

    border-top-color: var(--accent);

    border-radius: 50%;

    animation: spin .8s linear infinite;

    margin: auto;

}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    text-align: center;

    color: var(--muted);

    font-size: 11px;

    padding: 25px;

}


/* =====================================================
   UTILITIES
===================================================== */

.hidden {

    display: none !important;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    .topbar {

        padding: 0 20px;

    }


    #userEmail {

        display: none;

    }


    .dashboard {

        width: 94%;

        margin: 25px auto;

    }


    .upload-card {

        padding: 20px;

    }


    .file-item {

        align-items: flex-start;

        flex-wrap: wrap;

    }


    .file-actions {

        width: 100%;

        margin-left: 57px;

    }


    .share-link-box {

        flex-direction: column;

    }


    .copy-btn {

        height: 45px;

    }


    .result-actions {

        flex-direction: column;

    }


    .secondary-btn {

        width: 100%;

    }


    .download-card {

        padding: 25px 20px;

    }

}
/* =====================================================
   IMPULSETECH INDIA BRANDING
===================================================== */

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.company-logo-login {
    width: 260px;
    max-width: 85%;
    height: auto;
    display: block;
    margin: 0 auto 18px;
}

.app-brand-name h1 {
    font-size: 25px;
    margin: 0;
    color: #111827;
}

.app-brand-name p {
    margin-top: 5px;
    font-size: 13px;
    color: #6b7280;
}


/* =====================================================
   DASHBOARD HEADER BRAND
===================================================== */

.header-brand {
    display: flex;
    align-items: center;
    gap: 22px;
}


.company-logo {
    width: 185px;
    height: auto;
    display: block;
}


.app-name {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    padding-left: 22px;
}


.app-name strong {
    font-size: 17px;
    color: var(--text);
}


.app-name span {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}


/* =====================================================
   DOWNLOAD PAGE BRAND
===================================================== */

.download-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}


.download-brand img {
    width: 240px;
    max-width: 80%;
    height: auto;
}


.download-app-name {
    text-align: center;
}


.download-app-name strong {
    display: block;
    font-size: 20px;
    color: var(--text);
}


.download-app-name span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}