/* Import a modern font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #1a1a1a; /* Dark background */
    color: #e0e0e0; /* Light text */
}

.container {
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    background: #2a2a2a; /* Dark container background */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4); /* Adjusted shadow for dark theme */
}

header {
    background: linear-gradient(to right, #232526, #414345); /* Dark gradient */
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid #414345; /* Darker border */
}

h1 {
    margin: 0;
    font-weight: 600;
}

header h2 {
    margin: 0;
    font-weight: 600;
}

#current-path-display {
    color: #a0a0a0;
    font-weight: 400;
    margin: 4px 0 0;
    font-size: 1rem;
}

.file-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.file-list li {
    background: #333333; /* Slightly lighter dark for list items */
    margin-bottom: 10px;
    padding: 15px 20px;
    border: 1px solid #444444; /* Dark border */
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease;
}

.file-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5); /* Adjusted shadow */
    background-color: #3a3a3a;
}

.file-list li a {
    text-decoration: none;
    color: #00aaff; /* Bright blue for links */
    font-weight: 400;
    transition: color 0.2s ease;
}

.file-list li a:hover {
    color: #00eeff; /* Brighter blue on hover */
    text-decoration: underline;
}

.file-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.file-size {
    font-size: 0.8em;
    color: #a0a0a0;
    margin-top: 4px;
}

.download-button {
    background: #333; /* Dark background */
    color: #e0e0e0; /* Light text */
    border: 1px solid #555;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.download-button:hover {
    background: #00aaff; /* Bright blue on hover */
    color: #1a1a1a !important; /* Dark text on hover for contrast */
    border-color: #00aaff;
}

.auth-container {
    max-width: 400px;
    margin: 60px auto 40px auto;
    background: #232526;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    padding: 32px 32px 24px 32px;
    text-align: center;
    border: 1px solid #414345;
}

.auth-container h1 {
    margin-bottom: 18px;
    font-size: 1.5em;
    font-weight: 600;
    color: #00aaff;
}

.auth-input {
    width: 80%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: #00aaff;
}

.auth-error {
    color: #ff4d4d;
    background: #2a1a1a;
    border: 1px solid #ff4d4d;
    border-radius: 6px;
    margin-top: 10px;
    padding: 8px 0;
    font-size: 0.95em;
    display: block;
    font-weight: 500;
    letter-spacing: 0.02em;
}

#protected {
    /* display: none; */
    margin-top: 2em;
}