/* =========================================================
   INDIA UTILITY HUB
   PDF MERGE
   Premium Light Glass UI
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: #172033;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(124, 58, 237, .08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(37, 99, 235, .07),
            transparent 30%
        ),
        #f4f7ff;
}


/* ================= TOPBAR ================= */

.topbar {
    height: 72px;

    padding: 0 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 100;

    background:
        rgba(255, 255, 255, .88);

    backdrop-filter: blur(18px);

    border-bottom:
        1px solid #e3e8f2;

    box-shadow:
        0 5px 20px rgba(30, 41, 59, .04);
}

.brand {
    color: #172033;

    text-decoration: none;

    font-size: 15px;

    font-weight: 900;

    display: flex;

    align-items: center;

    gap: 8px;
}

.brand span {
    background:
        linear-gradient(
            90deg,
            #6d5dfc,
            #3b82f6
        );

    -webkit-background-clip: text;

    color: transparent;
}

.home-btn {
    text-decoration: none;

    color: #475569;

    padding: 10px 16px;

    border-radius: 10px;

    border:
        1px solid #dbe2ed;

    background:
        rgba(255, 255, 255, .8);

    font-size: 12px;

    font-weight: 700;

    transition: .25s;
}

.home-btn:hover {
    color: #4338ca;

    background:
        rgba(109, 93, 252, .08);

    border-color:
        rgba(109, 93, 252, .25);
}


/* ================= PAGE ================= */

.page {
    max-width: 1050px;

    margin: auto;

    padding: 65px 20px 80px;
}


/* ================= HERO ================= */

.hero {
    text-align: center;

    max-width: 750px;

    margin: auto;
}

.badge {
    display: inline-block;

    padding: 8px 15px;

    border-radius: 30px;

    background:
        rgba(109, 93, 252, .08);

    border:
        1px solid rgba(109, 93, 252, .18);

    color: #5b4bd6;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.5px;

    margin-bottom: 18px;
}

.hero h1 {
    font-size:
        clamp(38px, 6vw, 62px);

    line-height: 1.05;

    letter-spacing: -2px;

    color: #172033;
}

.hero p {
    color: #64748b;

    font-size: 14px;

    line-height: 1.7;

    margin-top: 17px;
}


/* ================= MERGE CARD ================= */

.merge-card {
    max-width: 850px;

    margin: 45px auto 0;

    padding: 20px;

    border-radius: 25px;

    background:
        rgba(255, 255, 255, .88);

    border:
        1px solid #e1e7f0;

    box-shadow:
        0 25px 60px rgba(30, 41, 59, .09);
}


/* ================= UPLOAD ================= */

.upload-area {
    min-height: 290px;

    padding: 45px 20px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border:
        2px dashed #cfd7e6;

    border-radius: 20px;

    background:
        #f8faff;

    transition: .25s;
}

.upload-area.dragover {
    border-color: #6d5dfc;

    background:
        rgba(109, 93, 252, .06);

    transform: scale(1.01);
}

.upload-icon {
    width: 75px;
    height: 75px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background:
        rgba(109, 93, 252, .09);

    font-size: 35px;

    margin-bottom: 18px;
}

.upload-area h2 {
    font-size: 21px;

    color: #172033;
}

.upload-area p {
    color: #64748b;

    font-size: 12px;

    margin-top: 7px;

    margin-bottom: 20px;
}

.select-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 23px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #6d5dfc,
            #3b82f6
        );

    color: white;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(79, 70, 229, .20);

    transition: .25s;
}

.select-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 32px rgba(79, 70, 229, .25);
}

.upload-area small {
    color: #94a3b8;

    margin-top: 12px;

    font-size: 9px;
}


/* ================= FILE SECTION ================= */

.file-section {
    display: none;

    margin-top: 20px;
}

.file-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 12px;
}

.file-header h3 {
    font-size: 16px;

    color: #172033;
}

.file-header span {
    color: #64748b;

    font-size: 10px;
}

.clear-btn {
    border:
        1px solid #fecdd3;

    background:
        #fff1f2;

    color: #be123c;

    padding: 8px 12px;

    border-radius: 9px;

    cursor: pointer;

    font-size: 10px;

    font-weight: 700;

    transition: .2s;
}

.clear-btn:hover {
    background:
        #ffe4e6;
}


/* ================= FILE LIST ================= */

.file-list {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.file-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px;

    border-radius: 13px;

    background:
        #f8faff;

    border:
        1px solid #e3e8f2;

    cursor: grab;

    transition: .2s;
}

.file-item:hover {
    border-color:
        #cfd7e6;

    background:
        #ffffff;

    box-shadow:
        0 5px 15px rgba(30, 41, 59, .05);
}

.file-item.dragging {
    opacity: .45;

    transform: scale(.98);
}

.file-item.drag-over {
    border-color: #6d5dfc;

    background:
        rgba(109, 93, 252, .06);
}

.pdf-icon {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        #fff1f2;

    color: #dc2626;

    font-size: 19px;

    flex-shrink: 0;
}

.file-info {
    flex: 1;

    min-width: 0;
}

.file-name {
    display: block;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 12px;

    font-weight: 700;

    color: #1e293b;
}

.file-meta {
    color: #64748b;

    font-size: 9px;

    margin-top: 4px;
}

.file-actions {
    display: flex;

    gap: 5px;
}

.file-actions button {
    width: 31px;
    height: 31px;

    border: 1px solid #e1e7f0;

    border-radius: 8px;

    background:
        #ffffff;

    color: #64748b;

    cursor: pointer;

    transition: .2s;
}

.file-actions button:hover {
    background:
        rgba(109, 93, 252, .08);

    border-color:
        rgba(109, 93, 252, .22);

    color: #5b4bd6;
}


/* ================= SUMMARY ================= */

.summary {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 8px;

    margin-top: 14px;
}

.summary div {
    padding: 13px;

    text-align: center;

    border-radius: 11px;

    background:
        #f8faff;

    border:
        1px solid #e7ebf2;
}

.summary span {
    display: block;

    color: #64748b;

    font-size: 9px;
}

.summary strong {
    display: block;

    font-size: 16px;

    margin-top: 3px;

    color: #172033;
}


/* ================= MERGE BUTTON ================= */

.merge-btn {
    width: 100%;

    margin-top: 14px;

    height: 53px;

    border: 0;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #6d5dfc,
            #3b82f6
        );

    color: white;

    font-size: 13px;

    font-weight: 900;

    cursor: pointer;

    transition: .25s;

    box-shadow:
        0 10px 25px rgba(79, 70, 229, .16);
}

.merge-btn:hover:not(:disabled) {
    transform: translateY(-2px);

    box-shadow:
        0 15px 35px rgba(79, 70, 229, .25);
}

.merge-btn:disabled {
    opacity: .45;

    cursor: not-allowed;

    box-shadow: none;
}


/* ================= STATUS ================= */

.status {
    text-align: center;

    color: #64748b;

    font-size: 11px;

    margin-top: 12px;

    min-height: 18px;
}

.status.success {
    color: #15803d;
}

.status.error {
    color: #dc2626;
}


/* ================= INFO ================= */

.info-grid {
    max-width: 850px;

    margin: 35px auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.info-card {
    padding: 22px;

    text-align: center;

    border-radius: 17px;

    background:
        rgba(255, 255, 255, .82);

    border:
        1px solid #e3e8f2;

    box-shadow:
        0 8px 25px rgba(30, 41, 59, .05);

    transition: .2s;
}

.info-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(30, 41, 59, .08);
}

.info-card div {
    font-size: 25px;

    margin-bottom: 9px;
}

.info-card h3 {
    font-size: 14px;

    color: #1e293b;
}

.info-card p {
    color: #64748b;

    font-size: 10px;

    line-height: 1.6;

    margin-top: 7px;
}


/* ================= HOW ================= */

.how-section {
    text-align: center;

    margin-top: 70px;
}

.label {
    color: #5b4bd6;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 2px;
}

.how-section h2 {
    margin-top: 7px;

    font-size: 28px;

    color: #172033;
}

.steps {
    max-width: 850px;

    margin: 30px auto 0;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.step {
    padding: 25px;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, .82);

    border:
        1px solid #e3e8f2;

    box-shadow:
        0 8px 25px rgba(30, 41, 59, .05);
}

.step > span {
    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: auto;

    border-radius: 50%;

    background:
        rgba(109, 93, 252, .10);

    color: #5b4bd6;

    font-weight: 900;
}

.step h3 {
    font-size: 14px;

    margin-top: 13px;

    color: #1e293b;
}

.step p {
    color: #64748b;

    font-size: 10px;

    margin-top: 6px;
}


/* ================= FOOTER ================= */

footer {
    min-height: 90px;

    padding: 25px 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top:
        1px solid #e1e7f0;

    background:
        #eef2f7;

    color: #64748b;

    font-size: 10px;
}

footer strong {
    color: #334155;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 700px) {

    .topbar {
        padding: 0 18px;
    }

    .brand {
        font-size: 12px;
    }

    .page {
        padding: 45px 14px 60px;
    }

    .hero p {
        font-size: 12px;
    }

    .merge-card {
        padding: 12px;

        margin-top: 30px;
    }

    .upload-area {
        min-height: 260px;

        padding: 30px 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;

        gap: 8px;

        text-align: center;
    }
}