* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: #333; }
.page { min-height: 100vh; }
.hidden { display: none !important; }
#main-page { background: #f5f7fa; }
.header { background: white; padding: 20px 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; }
.header h1 { color: #667eea; font-size: 24px; }
.badge { display: inline-block; padding: 4px 12px; background: linear-gradient(135deg, #28a745, #20c997); color: white; border-radius: 12px; font-size: 12px; font-weight: 600; margin-right: 10px; }
.badge.guest { background: linear-gradient(135deg, #ffa500, #ff8c00); }
.badge.admin { background: linear-gradient(135deg, #28a745, #20c997); }
.toolbar { background: white; padding: 20px 30px; margin: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); display: flex; gap: 12px; flex-wrap: wrap; }
.btn { padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #667eea; color: white; }
.btn-primary:hover:not(:disabled) { background: #5568d3; transform: translateY(-1px); }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover:not(:disabled) { background: #5a6268; }
.btn-success { background: #28a745; color: white; }
.btn-success:hover:not(:disabled) { background: #218838; }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover:not(:disabled) { background: #c82333; }
.btn-info { background: #17a2b8; color: white; }
.btn-info:hover:not(:disabled) { background: #138496; }
.btn-small { padding: 6px 12px; font-size: 13px; }
.breadcrumb { background: white; padding: 15px 30px; margin: 0 20px 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.breadcrumb-item { cursor: pointer; color: #667eea; margin-right: 8px; font-weight: 500; transition: color 0.2s; }
.breadcrumb-item:hover { text-decoration: underline; color: #5568d3; }
.breadcrumb-item:after { content: " › "; color: #999; margin-left: 8px; }
.breadcrumb-item:last-child:after { content: ""; }
.file-list-container { margin: 0 20px 20px; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.file-table { width: 100%; border-collapse: collapse; }
.file-table th, .file-table td { padding: 16px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.file-table th { background: #f8f9fa; font-weight: 600; color: #555; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.file-table tbody tr { transition: background 0.2s; }
.file-table tbody tr:hover { background: #f8f9ff; }
.file-icon { margin-right: 8px; font-size: 18px; }
.file-name { cursor: pointer; color: #333; font-weight: 500; transition: color 0.2s; }
.file-name:hover { color: #667eea; }
.file-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(4px); }
.modal-content { background: white; padding: 30px; border-radius: 16px; min-width: 500px; max-width: 700px; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: modalIn 0.3s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.modal-content h3 { margin-bottom: 20px; color: #667eea; font-size: 20px; }
.modal-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 12px; }
.modal input, .modal select { width: 100%; padding: 12px; margin: 10px 0; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 14px; transition: border-color 0.3s; }
.modal input:focus, .modal select:focus { outline: none; border-color: #667eea; }
.modal label { display: block; margin-bottom: 8px; color: #666; font-weight: 500; font-size: 14px; }
.toast { position: fixed; bottom: 30px; right: 30px; background: #333; color: white; padding: 16px 24px; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,0.3); z-index: 2000; animation: slideIn 0.3s ease-out; font-weight: 500; max-width: 400px; }
.toast.success { background: linear-gradient(135deg, #28a745, #20c997); }
.toast.error { background: linear-gradient(135deg, #dc3545, #c82333); }
.toast.info { background: linear-gradient(135deg, #667eea, #764ba2); }
@keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.upload-progress { margin-top: 10px; }
.upload-file-item { margin-bottom: 18px; padding: 16px; background: #f8f9fa; border-radius: 10px; border: 2px solid #e9ecef; }
.upload-file-name { font-weight: 600; margin-bottom: 10px; color: #333; font-size: 14px; word-break: break-all; }
.progress-bar { width: 100%; height: 36px; background: #e9ecef; border-radius: 18px; overflow: hidden; position: relative; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #28a745, #20c997); transition: width 0.3s ease; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: 700; }
.progress-text { text-align: left; margin-top: 8px; font-size: 13px; color: #666; }
.upload-speed { color: #28a745; font-weight: 700; }