body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
}

.main-gradient {
    min-height: 100vh;
    background: linear-gradient(145deg, #0b0c10, #1f2833, #0b0c10);
    color: #c5c6c7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Loader */

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    z-index: 9999;
}

    #loading-overlay.hidden {
        display: none;
    }

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-top: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.file-card {
    padding: 5px;
    border: 1px solid #ccc;
    margin-bottom: 3px;
}
.btn-custom {
    border-radius: 8px;
    font-weight: 600;
    color: white !important;
    transition: all 0.25s ease;
}

    .btn-custom:hover {
        transform: translateY(-2px);
        opacity: 0.9;
    }

.drop-area {
    border: 2px dashed #45a29e;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    color: #66fcf1;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.3s;
}

    .drop-area:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.file-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 14px;
    color: #66fcf1;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    transition: all 0.25s ease;
}

    .file-card:hover {
        background: rgba(102, 252, 241, 0.1);
        transform: translateY(-2px);
    }

#file-count {
    font-weight: 600;
    color: #00e0d0;
    text-align: center;
}

/* --- Frosted Glass Overlay --- */
.progress-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-in-out;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Frosted Card --- */
.progress-container {
    width: 90%;
    max-width: 420px;
    color:white;
    background-color:black;
    backdrop-filter: blur(16px);
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    animation: popIn 0.3s ease-in-out;
}

@keyframes popIn {
    from {
        transform: translateY(15px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.progress-status {
    font-weight: 600;
    color: #111;
    font-size: 1rem;
    margin-bottom: .6rem;
}

.progress-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: .4rem;
}

.progress-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 500;
    color:cornflowerblue;
}

/* --- Spinner Styles --- */
.spinner {
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-pixel {
    width: 16px;
    height: 16px;
}

.spinner-file {
    width: 12px;
    height: 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Status Message inside Overlay --- */
.status-message {
    font-size: 0.85rem;
    color: #007bff;
    margin: 0.4rem 0 0.6rem;
    min-height: 20px;
    word-break: break-word;
    animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Progress Bar --- */
.progress-bar-wrapper {
    width: 100%;
    background-color: rgba(233, 236, 239, 0.6);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.progress-fill {
    height: 26px;
    width: 0%;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    transition: width 0.4s ease;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    line-height: 26px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-box {
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid #00ff88;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 0 10px #00ff88;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}





.smokey-white {
    color: #f2f2f2;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

.card {
    backdrop-filter: blur(8px);
    background: rgba(20, 20, 20, 0.9);
    border-radius: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

pre {
    background: #111;
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.alert {
    font-size: 0.95rem;
    background-color: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.4);
    color: #ffb3b3 !important;
}

.copy-btn {
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

    .copy-btn:active {
        transform: scale(0.96);
    }

@media (max-width: 576px) {
    .card-body {
        padding: 1.2rem !important;
    }

    h5 {
        font-size: 1.05rem;
    }

    .copy-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .badge {
        font-size: 0.8rem !important;
    }
}
spin {
    to

{
    transform: rotate(360deg);
}
}
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 10px;
        background: rgba(20, 20, 20, 0.8);
        border-radius: 12px;
        padding: 10px;
    }

    .nav-link {
        text-align: center;
        padding: 12px;
    }
}










/* 📱 Mobile Optimization */
@media (max-width: 768px) {
    .actions-cell {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-action {
        width: 100%;
        font-size: 0.95rem;
    }

    .table-dark th, .table-dark td {
        padding: 8px;
    }

    .btn-refresh, .btn-back {
        padding: 10px 16px;
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: stretch;
    }
}











@media (max-width: 600px) {
    .folder-container {
        padding: 15px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .upload-form {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary,
    .btn-success {
        width: 100%;
        font-size: 0.95rem;
    }

    .folder-title {
        font-size: 1.1rem;
    }

    .folder-table th, .folder-table td {
        font-size: 0.9rem;
        padding: 8px;
    }
}


@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem !important;
    }

    h3 {
        font-size: 1.3rem;
    }

    .btn {
        font-size: 0.95rem;
    }
}


#clicked-button-name {
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #cfd8ff;
    background: linear-gradient(90deg, #cfd8ff, #9ba9ff, #8ec5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 6px rgba(155, 170, 255, 0.2), 0 0 12px rgba(100, 140, 255, 0.15);
    margin-top: 10px;
    margin-bottom: 16px;
    animation: softPulse 3s ease-in-out infinite, fadeInSubtle 0.8s ease forwards;
    display: inline-block;
}

/* 🌫 Gentle breathing effect */
@keyframes softPulse {
    0%, 100% {
        text-shadow: 0 0 6px rgba(155, 170, 255, 0.25), 0 0 12px rgba(120, 150, 255, 0.15);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 10px rgba(175, 190, 255, 0.35), 0 0 18px rgba(140, 160, 255, 0.2);
        transform: scale(1.02);
    }
}

/* 🕊 Smooth fade-in */
@keyframes fadeInSubtle {
    from {
        opacity: 0;
        transform: translateY(4px);
        filter: blur(1px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
