/* ------------------------------------------------------
   GLOBAL
------------------------------------------------------ */
body {
    background: #0A0F12;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: white;
}

/* ------------------------------------------------------
   NAVBAR
------------------------------------------------------ */
.navbar {
    width: 100%;
    background: rgba(255,255,255,0.03);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 45px;
}

.title {
    font-size: 20px;
    font-weight: 600;
    color: #25FFE6;
    text-shadow: 0 0 12px #0DC5FF;
}

/* ------------------------------------------------------
   MAIN CONTAINER
------------------------------------------------------ */
.container {
    max-width: 650px;
    margin: 60px auto;
    text-align: center;
}

/* ------------------------------------------------------
   UPLOAD CARD
------------------------------------------------------ */
.upload-card {
    background: rgba(255,255,255,0.06);
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 0 25px #0DC5FF33;
    backdrop-filter: blur(10px);
}

.card-title {
    font-size: 24px;
    color: #25FFE6;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #0DC5FF;
}

.sub {
    color: #bbb;
    margin-bottom: 20px;
}

/* ------------------------------------------------------
   FILE INPUT
------------------------------------------------------ */
.file-input {
    padding: 12px;
    width: 80%;
    background: #111;
    color: white;
    border: 1px solid #0DC5FF;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.file-input:hover {
    border-color: #25FFE6;
    box-shadow: 0 0 12px #0DC5FF;
}

/* ------------------------------------------------------
   BUTTON
------------------------------------------------------ */
.btn {
    background-width: 100%;
    background: linear-gradient(90deg,#25FFE6,#0DC5FF);
    color: black;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px #0DC5FF;
}

.btn:hover {
    opacity: 0.8;
}

/* ------------------------------------------------------
   RESULT CARDS
------------------------------------------------------ */
.result-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.result-box {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    width: 160px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 15px #0DC5FF33;
}

.result-box h2 {
    font-size: 32px;
    color: #25FFE6;
    margin-bottom: 5px;
}

.result-box p {
    font-size: 14px;
    color: #ccc;
}

.result-box.error h2 { color: #FF4543; }
.result-box.duplicate h2 { color: #FFAE00; }

/* ------------------------------------------------------
   OPERATOR BOX
------------------------------------------------------ */
.operator-box {
    background: rgba(255,255,255,0.06);
    padding: 20px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 0 15px #0DC5FF33;
}

.operator-box h3 {
    color: #25FFE6;
    margin-bottom: 10px;
    text-align: center;
}

.operator-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 28px;
}

/* ------------------------------------------------------
   COPY BOX
------------------------------------------------------ */
.copy-box {
    background: rgba(255,255,255,0.06);
    padding: 20px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 0 15px #0DC5FF33;
    text-align: center;
}

.copy-box h3 {
    color: #25FFE6;
    margin-bottom: 10px;
}

.copy-area {
    width: 100%;
    height: 220px;
    background: #111;
    border: 1px solid #0DC5FF;
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ------------------------------------------------------
   DOWNLOAD BUTTONS (ALT ALTA)
------------------------------------------------------ */
.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 35px;
}

.download-buttons .download-btn {
    width: 320px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 17px;
    color: black;
    font-weight: bold;
    background: linear-gradient(90deg,#25FFE6,#0DC5FF);
    box-shadow: 0 0 20px #0DC5FF;
    display: block;
}

.download-buttons .download-btn:hover {
    opacity: .85;
}

/* ------------------------------------------------------
   LOADING OVERLAY
------------------------------------------------------ */
#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 18, 0.92);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.loader {
    border: 6px solid rgba(255,255,255,0.1);
    border-top: 6px solid #25FFE6;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px #0DC5FF;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
    color: #25FFE6;
    font-weight: 600;
    text-shadow: 0 0 12px #0DC5FF;
}

/* ------------------------------------------------------
   RESPONSIVE
------------------------------------------------------ */
@media (max-width: 480px) {

    .download-buttons .download-btn {
        width: 100%;
    }

    .result-box {
        width: 100%;
    }

    .copy-area {
        height: 180px;
    }
}