* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body { background: #0f1115; color: #eaeaea; min-height: 100vh; }
.hidden { display: none !important; }

.screen.login-screen, #login-screen { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box {
  background: #1a1d24; padding: 40px; border-radius: 16px; width: 340px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.login-box h1 { font-size: 22px; margin-bottom: 2px; }
.subtitle { color: #9aa0aa; font-size: 13px; margin-bottom: 12px; }
input { background: #262a33; border: 1px solid #363b45; color: #fff; padding: 12px; border-radius: 8px; font-size: 14px; }
button { cursor: pointer; border: none; border-radius: 8px; padding: 12px; font-size: 14px; font-weight: 600; }
#loginBtn { background: #4f7cff; color: white; margin-top: 6px; }
.error { color: #ff6b6b; font-size: 13px; min-height: 16px; }

header { display: flex; justify-content: space-between; align-items: center; padding: 20px 32px; border-bottom: 1px solid #1f232b; }
header h1 { font-size: 20px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #666; }
.status-dot.online { background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
#logoutBtn { background: #262a33; color: #eaeaea; }

.upload-area { padding: 24px 32px 0; }
.upload-label {
  display: inline-block; background: #4f7cff; color: white; padding: 12px 20px;
  border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.upload-progress { margin-top: 10px; color: #9aa0aa; font-size: 13px; }

.filters { display: flex; gap: 10px; padding: 20px 32px 0; flex-wrap: wrap; }
.filter-btn { background: #1a1d24; color: #9aa0aa; border: 1px solid #262a33; }
.filter-btn.active { background: #4f7cff; color: white; border-color: #4f7cff; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; padding: 24px 32px 60px;
}
.card {
  background: #1a1d24; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid #262a33;
}
.card-preview { width: 100%; height: 140px; background: #262a33; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-preview img, .card-preview video { width: 100%; height: 100%; object-fit: cover; }
.card-icon { font-size: 36px; }
.card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.card-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 11px; color: #9aa0aa; }
.card-actions { display: flex; gap: 8px; padding: 0 12px 12px; }
.card-actions a, .card-actions button { flex: 1; text-align: center; font-size: 12px; padding: 8px; border-radius: 6px; text-decoration: none; }
.btn-view { background: #262a33; color: #eaeaea; }
.btn-delete { background: #3a1f24; color: #ff6b6b; }
