:root { --bg: #121212; --card: #1e1e1e; --accent: #2979FF; --text: #eee; --gray: #888; }
body { background: var(--bg); color: var(--text); font-family: sans-serif; margin: 0; padding: 0; padding-bottom: 80px; padding-top: 50px; }
.nav-bar { position: fixed; bottom: 0; width: 100%; background: #000; display: flex; justify-content: space-around; padding: 10px 0; border-top: 1px solid #333; z-index: 100; }
.nav-item { text-align: center; color: var(--gray); font-size: 0.8rem; background: none; border: none; }
.nav-item.active { color: var(--accent); }
.nav-icon { font-size: 24px; display: block; margin-bottom: 2px; }
.view-section { display: none; padding: 20px; }
.view-section.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.login-container { max-width: 400px; margin: 40px auto; padding: 20px; background: var(--card); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.form-group { margin-bottom: 15px; }
.form-label { display: block; color: var(--gray); margin-bottom: 5px; font-size: 0.9rem; }
.form-input { width: 100%; background: #333; border: 1px solid #555; color: white; padding: 12px; border-radius: 8px; box-sizing: border-box; font-size: 16px; }
.camera-box { background: var(--card); border: 2px dashed #444; border-radius: 20px; height: 120px; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 15px; overflow: hidden; }
.file-input { position: absolute; width:100%; height:100%; opacity:0; z-index:2; }
.btn-green { background: #00E676; color: black; width: 100%; padding: 20px; border-radius: 15px; font-weight: bold; border:none; cursor: pointer; }
#file-list { margin-top: 15px; text-align: left; background: var(--card); border-radius: 15px; padding: 10px; display: none; max-height: 250px; overflow-y: auto; }
.file-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid #333; font-size: 0.9rem; }
.file-item:last-child { border-bottom: none; }
.file-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.file-check { color: #00E676; font-weight: bold; margin-left: 10px; }
.status-header { position: fixed; top: 0; left: 0; right: 0; z-index: 9998; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; animation: pulse 2s infinite; }
.status-dot.ok { background: #00E676; box-shadow: 0 0 10px #00E676; }
.status-dot.error { background: #FF5252; box-shadow: 0 0 10px #FF5252; animation: blink 0.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.status-text { font-size: 0.85rem; color: #aaa; }
.stat-box { background: var(--card); padding: 20px; border-radius: 15px; text-align: center; margin-bottom: 10px; }
.stat-num { font-size: 2rem; font-weight: bold; color: var(--accent); }
.upload-overlay { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.8); color: #00E676; padding: 30px; border-radius: 20px; display: none; flex-direction: column; align-items: center; z-index: 10000; }
.upload-overlay i { font-size: 80px; margin-bottom: 10px; }
.toast-container { position: fixed; top: 60px; left: 10px; right: 10px; z-index: 10001; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 15px 20px; border-radius: 12px; color: white; font-weight: 500; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.toast.success { background: linear-gradient(135deg, #00C853, #00E676); }
.toast.error { background: linear-gradient(135deg, #D32F2F, #FF5252); }