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

body{
    font-family:'Inter',sans-serif;
    background:linear-gradient(135deg,#1e1b4b,#4f46e5);
    color:white;
}

/* HEADER */
.main-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,0.15);
    flex-wrap:wrap; /* ✅ FIX */
}

.logo{
    font-size:22px;
    font-weight:700;
}

.logo span{
    background:linear-gradient(90deg,#38bdf8,#22d3ee);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* NAV FIX */
.nav{
    display:flex;
    gap:15px;
}

.nav a{
    text-decoration:none;
    color:white;
    font-size:14px;
    transition:0.3s;
    white-space:nowrap; /* ✅ prevent breaking */
}

.nav a:hover{
    color:#38bdf8;
}

.upload-btn{
    background:linear-gradient(90deg,#38bdf8,#22d3ee);
    padding:8px 16px;
    border-radius:10px;
    color:#111827 !important;
    font-weight:600;
}
.upload-btn:hover{
    background:linear-gradient(90deg,#55c5f5,#7ce3f3);
}
/* HERO */
.hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:60px 8%;
    /* min-height:85vh; */
    min-height:auto;
    gap:40px;
}

.hero-text{
    max-width:500px;
}

.hero-text h1{
    font-size:44px;
    margin-bottom:20px;
    line-height:1.2;
}

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

/* UPLOAD CARD */
.upload-card{
    background:rgba(255,255,255,0.15);
    backdrop-filter:blur(20px);
    padding:30px;
    border-radius:20px;
    width:100%;
    max-width:380px;  /* ✅ updated */
    box-shadow:0 25px 70px rgba(0,0,0,0.35);
    border:1px solid rgba(255,255,255,0.25);
    animation:fadeIn 0.6s ease;
    transition:0.3s;
}

.upload-card:hover{
    transform:translateY(-5px);
}

/* TITLE */
.upload-card h3{
    text-align:center;
    margin-bottom:10px;
    font-size:18px;
}

/* PROGRESS */
#progressBox{
    margin-bottom:12px;
}

#progressBar{
    height:12px !important;
    border-radius:10px;
    background:linear-gradient(90deg,#38bdf8,#22d3ee);
}

#progressText{
    text-align:center;
    font-weight:600;
    font-size:12px;
}

/* FILE PREVIEW */
.file-preview{
    background:rgba(255,255,255,0.2);
    padding:10px;
    border-radius:10px;
    margin-bottom:12px;
    font-size:12px;
    max-height:100px;
    overflow-y:auto;
}

.file-preview ul{
    margin-top:5px;
    padding-left:16px;
}

.file-preview li{
    margin-bottom:3px;
}

/* INPUT */
.input-group input{
    width:100%;
    padding:12px;
    border-radius:10px;
    border:none;
    margin-bottom:12px;
    outline:none;
    font-size:14px;
}

/* FILE BUTTON */
.file-buttons{
    display:flex;
    gap:10px;
    margin-bottom:15px;
    flex-wrap:wrap;
}

.file-btn{
    flex:1;
    min-width:120px;
    background:white;
    color:#4f46e5;
    padding:10px;
    border-radius:10px;
    text-align:center;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.file-btn:hover{
    background:#e0e7ff;
    transform:scale(1.03);
}

/* TRANSFER BUTTON */
.transfer-btn{
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    background:linear-gradient(90deg,#38bdf8,#22d3ee);
    color:#111827;
    font-weight:700;
    cursor:pointer;
    transition:0.3s;
}

.transfer-btn:hover{
    transform:scale(1.03);
}

/* SMALL TEXT */
.upload-card small{
    display:block;
    margin-top:10px;
    font-size:11px;
    text-align:center;
    opacity:0.8;
}

/* TRUST */
.trust{
    text-align:center;
    padding:30px 8%;
    background:#f3f4f6;
    color:#111827;
}
.toggle-buttons{
    display:flex;
    background:rgba(255,255,255,0.12);
    padding:4px;
    border-radius:12px;
    margin-bottom:18px;
}

.toggle-buttons button{
    flex:1;
    padding:8px;
    border:none;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
    background:transparent;
    color:white;
    transition:0.3s;
}

.toggle-buttons button.active{
    background:linear-gradient(90deg,#38bdf8,#22d3ee);
    color:#111827;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
}

/* DROP AREA */
.drop-area{
    border:2px dashed rgba(255,255,255,0.4);
    border-radius:12px;
    padding:20px;
    text-align:center;
    margin-bottom:15px;
    cursor:pointer;
    transition:0.3s;
}

.drop-area:hover{
    background:rgba(255,255,255,0.1);
}

.browse-btn{
    display:inline-block;
    margin-top:8px;
    background:white;
    color:#4f46e5;
    padding:8px 14px;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
}
#dragOverlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:linear-gradient(135deg,#46e5cb,#6366f1);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;

    opacity:0;
    pointer-events:none;
    transition:0.3s ease;
}

#dragOverlay.active{
    opacity:1;
    pointer-events:auto;
}

.drop-label{
    display:block;
    cursor:pointer;
}
.errorBox{
    display:none;
    background:rgba(255,0,0,0.1);
    color:#fecaca;
    padding:10px;
    border-radius:8px;
    margin-top:10px;
    font-size:13px;
    text-align:center;
}
.file-types{
    font-size:12px;
    margin-top:8px;
    color:#cbd5f5;
    cursor:pointer;
    position:relative;
    text-align:center;
}

/* Tooltip */
.tooltip{
    visibility:hidden;
    opacity:0;
    position:absolute;
    bottom:130%;
    left:50%;
    transform:translateX(-50%);
    width:260px;

    background:#111827;
    color:#fff;
    padding:10px;
    border-radius:10px;
    font-size:11px;
    line-height:1.5;

    box-shadow:0 15px 30px rgba(0,0,0,0.4);
    transition:0.3s ease;
}

/* Show on hover */
.file-types:hover .tooltip{
    visibility:visible;
    opacity:1;
}
/* ANIMATION */
@keyframes fadeIn{
    from{opacity:0;transform:translateY(20px);}
    to{opacity:1;transform:translateY(0);}
}

/* ========================= */
/* 📱 TABLET */
/* ========================= */
@media (max-width: 768px){

    .hero{
        flex-direction:column;
        text-align:center;
        padding:50px 6%;
    }

    .hero-text h1{
        font-size:34px;
    }

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

/* ========================= */
/* 📱 MOBILE */
/* ========================= */
@media (max-width: 576px){
     body{
        padding-bottom:20px;
    }
    .main-header{
        flex-direction:column;
        gap:10px;
        text-align:center;
    }

    .nav{
        justify-content:center;
        flex-wrap:wrap;
    }

    .nav a{
        margin:5px 8px;
    }

    .hero{
        padding:40px 5%;
        gap:20px;
    }

    .hero-text h1{
        font-size:26px;
    }

    .hero-text p{
        font-size:14px;
    }
    .upload-card{
        width:100%;
        max-width:100%;
        border-radius:16px;
    }

    .upload-card{
        padding:20px;
    }

    .file-btn{
        flex:100%;
    }
}

.upload-msg{
    display:none;
    margin-bottom:12px;
    padding:12px;
    border-radius:8px;
    font-size:14px;
    font-weight:500;
}

.upload-msg.error{
    display:block;
    background:#ffebee;
    color:#c62828;
    border:1px solid #ef9a9a;
}

.upload-msg.success{
    display:block;
    background:#e8f5e9;
    color:#2e7d32;
    border:1px solid #a5d6a7;
}
.email-info{
    font-size:12px;
    color:#cfcfcf;
    margin-top:6px;
    line-height:1.5;
}
.private-option{
margin-top:10px;
padding:12px 14px;
border-radius:12px;
background:rgba(15,23,42,0.28);
border:1px solid rgba(56,189,248,0.25);
text-align:center;
}

.private-title{
font-size:10px;
font-weight:600;
color:#f8fafc;
line-height:1.5;
}

/* =========================================
   PREMIUM CIRCULAR UPLOAD UI
========================================= */

.upload-progress-container{

    margin-bottom:20px;

    text-align:center;

    animation:fadeIn 0.4s ease;
}

.circle-wrapper{

    position:relative;

    width:170px;

    height:170px;

    margin:auto;
}

.progress-ring{

    transform:rotate(-90deg);
}

.progress-ring-bg{

    fill:none;

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

    stroke-width:10;
}

.progress-ring-fill{

    fill:none;

    stroke:url("#gradient");

    stroke:#38bdf8;

    stroke-width:10;

    stroke-linecap:round;

    stroke-dasharray:364;

    stroke-dashoffset:364;

    transition:stroke-dashoffset 0.3s linear;
}

.progress-center{

    position:absolute;

    top:50%;

    left:50%;

    transform:translate(-50%,-50%);
}

#progressPercent{

    font-size:32px;

    font-weight:700;

    color:white;

    margin-bottom:10px;
}

.upload-live-dot{

    width:14px;

    height:14px;

    background:#38bdf8;

    border-radius:50%;

    margin:auto;

    position:relative;

    animation:pulseDot 1.2s infinite;
}

.upload-live-dot::before{

    content:"";

    position:absolute;

    inset:-10px;

    border-radius:50%;

    border:2px solid rgba(56,189,248,0.5);

    animation:ringPulse 1.5s infinite;
}

.progress-details{

    margin-top:18px;

    line-height:1.8;
}

.progress-main{

    font-size:16px;

    font-weight:600;
}

.progress-sub{

    font-size:13px;

    opacity:0.92;
}


@keyframes pulseDot{

    0%{
        transform:scale(1);
        opacity:1;
    }

    50%{
        transform:scale(1.2);
        opacity:0.8;
    }

    100%{
        transform:scale(1);
        opacity:1;
    }
}

@keyframes ringPulse{

    0%{
        transform:scale(0.8);
        opacity:1;
    }

    100%{
        transform:scale(1.8);
        opacity:0;
    }
}


/* =========================================
   PROCESSING STATUS UI
========================================= */

.processing-active{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin-top:8px;
    padding:4px 0;
    color:#38bdf8;
    font-size:13px;
    font-weight:600;
    animation:pulseStatus 1.2s infinite;
}

.processing-done{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin-top:6px;
    padding:3px 0;
    color:#4ade80;
    font-size:13px;
    font-weight:600;
    animation:fadeIn 0.4s ease;
}

@keyframes fadeInStatus {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseStatus{

    0%{
        transform:scale(1);
        opacity:1;
    }

    50%{
        transform:scale(1.02);
        opacity:0.92;
    }

    100%{
        transform:scale(1);
        opacity:1;
    }
}

/* =========================================
   FLOATING UPLOAD PANEL
========================================= */

.floating-upload-panel{
    position:fixed;
    top:85px;
    right:20px;
    width:340px;
    background:rgba(30,27,75,0.88);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,0.10);
    border-radius:24px;
    padding:24px;
    z-index:9999;
    box-shadow:0 25px 60px rgba(0,0,0,0.35);
    display:none;
    animation:slideInUpload 0.4s ease;
}

.floating-header{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:15px;
    font-weight:700;
    margin-bottom:18px;
}

.floating-live{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#38bdf8;
    animation:pulseDot 1.2s infinite;
}

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

.floating-upload-panel .circle-wrapper{
    width:140px;
    height:140px;
}

.floating-upload-panel #progressPercent{
    font-size:30px;
}

.floating-upload-panel .progress-details{
    margin-top:12px;
    line-height:1.9;
}

.floating-upload-panel .file-preview{
    margin-top:18px;
    text-align:left;
    max-height:120px;
    overflow:auto;
}

@keyframes slideInUpload{

    from{
        opacity:0;
        transform:translateX(30px);
    }

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

/* MOBILE */

@media(max-width:768px){

    .floating-upload-panel{
        right:15px;
        left:15px;
        width:auto;
        top:auto;
        bottom:12px;
        max-height:75vh;
        overflow:auto;
    }
}
/* =========================================
   INLINE SELECTED FILE
========================================= */

.selected-inline-file{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
    padding:12px;
    border-radius:14px;
    background:rgba(255,255,255,0.10);
    border:1px solid rgba(255,255,255,0.12);
    animation:fadeIn 0.3s ease;
}

.selected-inline-icon{
    width:42px;
    height:42px;
    border-radius:12px;
    background:rgba(56,189,248,0.15);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
}

.selected-inline-content{
    flex:1;
    min-width:0;
}

.selected-inline-name{
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.selected-inline-size{
    margin-top:4px;
    font-size:11px;
    opacity:0.8;
}

.floating-header{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:18px;
}

.floating-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:15px;
    font-weight:700;
}

.close-floating-btn{
    position:absolute;
    top:0;
    right:0;
    width:32px;
    height:32px;
    border:none;
    border-radius:10px;
    background:rgba(255,255,255,0.08);
    color:white;
    cursor:pointer;
    transition:0.25s;
    font-size:14px;
    border-top-right-radius: 14px;
}

.close-floating-btn:hover{
    background:rgba(255,255,255,0.16);
    transform:scale(1.05);
}

/* REMOVE FILE BUTTON */

.remove-selected-file{
    width:32px;
    height:32px;
    border:none;
    border-radius:10px;
    background:rgba(255,255,255,0.08);
    color:white;
    cursor:pointer;
    transition:0.25s;
    font-size:14px;
    flex-shrink:0;
}

.remove-selected-file:hover{
    background:rgba(239,68,68,0.25);
    transform:scale(1.05);
}