:root {
    --bg-color: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-hover: #b4941f;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(212, 175, 55, 0.3);
    /* Gold tint */
    --globe-color: #ffd700;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    /* Subtle gradient mesh for white theme */
    background-image:
        radial-gradient(at 10% 10%, var(--globe-color) 0px, transparent 50%),
        radial-gradient(at 90% 90%, var(--globe-color) 0px, transparent 50%);
}

/* Background Effects */
.background-globes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    background: var(--globe-color);
}

.globe-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation: float 10s infinite ease-in-out;
}

.globe-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Layout & Containers */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(189, 175, 137, 0.15);
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.subtitle,
.description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* Logo */
.logo-container {
    margin-bottom: 24px;
}

.logo {
    width: 150px;
    height: auto;
}

.header-logo {
    width: 80px;
}

/* Inputs & Buttons */
.input-group {
    display: flex;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 8px;
}

.input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(242, 186, 0, 0.2);
}

input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 12px 16px;
    width: 100%;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: all 0.3s ease;
}

#login-btn {
    background: var(--accent-color);
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.error-hidden {
    display: none;
}

#error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 8px;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Main Content Styles */
#main-content {
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    padding-top: 40px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 60px;
    padding: 0 20px;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
}

.secondary-btn:hover {
    background: var(--glass-border);
    color: var(--text-primary);
}

main {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.file-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
    border-color: var(--accent-color);
}

.file-icon {
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
    padding: 16px;
    border-radius: 50%;
}

.file-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.file-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.download-btn {
    background: var(--accent-color);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    display: block;
    text-decoration: none;
    text-align: center;
}

.download-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .files-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

footer span {
    font-weight: 600;
    color: var(--accent-color);
}

.main-view-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}