/* --- Global Settings --- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

/* --- Navigation --- */
.navbar {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* --- Upload Zone --- */
.upload-zone {
    border: 2px dashed #cbd5e1;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.upload-zone:hover {
    border-color: #4f46e5;
    background-color: #eef2ff;
    transform: translateY(-2px);
}

/* --- File Card --- */
.file-card {
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: white;
}
.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    border-color: #cbd5e1;
}

/* Thumbnail Area */
.card-preview {
    height: 130px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.card-preview img, .card-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.file-card:hover .card-preview img {
    transform: scale(1.05);
}

/* --- Center Alert Popup (Modern) --- */
.custom-alert-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.custom-alert-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .card-preview { height: 100px; } /* Smaller thumbnail on mobile */
    .file-card h6 { font-size: 13px; }
    .upload-zone { padding: 20px !important; }

    /* Sticky header disable on mobile */
    .sticky-lg-top {
        position: relative !important;
        top: 0 !important;
        z-index: 0;
    }
}
