/* GLOBAL */

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #1f2026, #121317);
    color: #e5e7eb;
}

/* CONTAINER */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

/* TOPBAR */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logout-btn {
    background: #2a2b31;
    border: 1px solid #3a3b41;
    padding: 8px 16px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #3a3b41;
}

/* UPLOAD BOX */

.upload-box {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.upload-box:hover {
    border-color: #7b2ff7;
}

.upload-box input {
    margin-bottom: 15px;
    color: white;
}

.upload-box button {
    background: linear-gradient(135deg, #7b2ff7, #5c0a78);
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.upload-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123,47,247,0.4);
}

/* ANIMATED GLOW */

.upload-box::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123,47,247,0.15), transparent 60%);
    top: -50%;
    left: -50%;
    opacity: 0;
    transition: 0.5s;
    pointer-events: none; 
}

.upload-box:hover::before {
    opacity: 1;
}

/* FILES */

h2 {
    margin-top: 40px;
    font-weight: 500;
}

.files {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* FILE CARD */

.file {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.file:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

/* FILE NAME */

.file span {
    font-size: 15px;
    opacity: 0.9;
}

/* DOWNLOAD BUTTON */

.file a {
    text-decoration: none;
    background: #2a2b31;
    padding: 6px 12px;
    border-radius: 6px;
    color: #7b2ff7;
    border: 1px solid #3a3b41;
    transition: 0.2s;
}

.file a:hover {
    background: #7b2ff7;
    color: white;
}

/* UPLOAD LOADING BAR */

.uploading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #7b2ff7, transparent);
    animation: loading 1s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* LOGIN PAGE */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 40px;
    flex-wrap: wrap;
}

.form-box {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 30px;
    width: 320px;
    border-radius: 16px;
    transition: 0.3s;
}

.form-box:hover {
    transform: translateY(-5px);
    border-color: #7b2ff7;
}

.form-box h2 {
    margin-bottom: 15px;
    font-weight: 500;
}

.form-box input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border: none;
    background: #2a2b31;
    color: white;
}

.form-box input:focus {
    outline: 1px solid #7b2ff7;
}

.form-box button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #7b2ff7, #5c0a78);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.form-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123,47,247,0.4);
}