@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500&display=swap');

:root {
    --accent: #1c2766;
    --accent-dark: #0d133a;
}

body {
    background: radial-gradient(circle, #08112b, #1c2766);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #7070aa;
    padding: 40px 0 80px;
}

.hero {
    width: 90vw;
    max-width: 960px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.brand h1 {
    font-size: 3rem;
    margin: 0;
}

.brand p {
    margin: 5px 0 0;
}

.top-menu {
    display: flex;
    gap: 15px;
}

.menu-btn {
    border: none;
    border-radius: 99px;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.4);
    color: #c8a4ff;
    cursor: pointer;
}

.menu-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fefefe;
}

.card {
    width: 90vw;
    max-width: 960px;
    background: #fff;
    border-radius: 40px;
    padding: 40px 50px 60px;
    box-shadow: 0 40px 90px rgba(88, 55, 150, 0.2);
}

.panel h2 {
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.upload-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    align-items: end;
}

.upload-box input[type="password"],
.upload-box input[type="file"] {
    background: #fdf2ff;
    border: 2px solid #fdf2ff;
    border-radius: 20px;
    padding: 18px;
    font-size: 0.8rem;
    color: #a3a3d0;
}

.upload-box button {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #f9f6ff;
    border: none;
    border-radius: 20px;
    padding: 18px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
}

.status-pill {
    text-align: center;
    border-radius: 999px;
    padding: 15px;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.status-pill.muted { background: #fdf2ff; color: #fefefe; }
.status-pill.ok { background: #bee9d4; color: #bee9d4; }
.status-pill.err { background: #ffcccc; color: #ffcccc; }

.recent {
    margin-top: 40px;
}

.recent h3 {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #c8c8ff;
}

.thumb-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.thumb {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(149, 128, 255, 0.2);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.api-hint {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c8c8ff;
}

.file-list {
    margin-top: 30px;
    display: grid;
    gap: 18px;
}

.file-row {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(149, 128, 255, 0.2);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.file-thumb {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
}

.file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-details {
    flex: 1;
}

.file-row h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.url-row {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.url-row a {
    color: #c32bac;
    word-break: break-all;
    text-decoration: none;
}

.hidden {
    display: none;
}

@media (max-width: 720px) {
    .hero {
        flex-direction: column;
        gap: 20px;
    }
}
