* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

section {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

/* Upload Section */
.drop-zone {
    border: 3px dashed #667eea;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.drop-zone:hover {
    background: #f0f2ff;
    border-color: #764ba2;
}

.drop-zone p {
    color: #666;
    margin-bottom: 20px;
}

#browseBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#browseBtn:hover {
    transform: translateY(-2px);
}

#uploadForm {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group select,
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
}

#uploadStatus {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

#uploadStatus.success {
    background: #d4edda;
    color: #155724;
}

#uploadStatus.error {
    background: #f8d7da;
    color: #721c24;
}

/* File List */
.file-list {
    list-style: none;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 6px;
    margin-bottom: 10px;
}

.file-list li span {
    font-weight: 600;
    color: #333;
}

.file-list li small {
    color: #666;
    margin-left: 20px;
}

.file-list li a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.file-list li a:hover {
    transform: translateY(-2px);
}

/* User Files Section */
#loadFilesBtn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#loadFilesBtn:hover {
    transform: translateY(-2px);
}

#userFiles {
    margin-top: 20px;
}

.user-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff3cd;
    border-radius: 6px;
    margin-bottom: 10px;
}

.user-file-actions button {
    margin-left: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-visibility {
    background: #17a2b8;
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

/* Warning/Password Pages */
.warning-page, .password-page {
    text-align: center;
    padding: 60px 20px;
}

.warning-page h2, .password-page h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.warning-page p, .password-page p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.password-page form {
    max-width: 400px;
    margin: 0 auto;
}

.password-page input[type="password"] {
    margin-bottom: 20px;
}

.error {
    color: #dc3545;
    margin-top: 15px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}
