body {
    margin: 0; font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    height: 100vh; display: flex; align-items: center; justify-content: center; color: #f8fafc;
}
.glass-app {
    width: 95%; height: 90vh; background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; display: flex; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.sidebar { width: 280px; background: rgba(15, 23, 42, 0.5); border-right: 1px solid rgba(255,255,255,0.05); padding: 20px; }
.sidebar-header { font-size: 1.2rem; font-weight: bold; margin-bottom: 30px; display: flex; align-items: center; gap: 10px; color: #38bdf8; }
.tree-item { padding: 12px; cursor: pointer; border-radius: 10px; transition: 0.2s; display: flex; align-items: center; gap: 12px; font-size: 0.9rem; margin-bottom: 4px; }
.tree-item:hover { background: rgba(255,255,255,0.05); }
.tree-item.active { background: #0284c7; color: white; }
.content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.main-header { padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.02); }
.btn-upload { background: #0ea5e9; border: none; padding: 10px 20px; border-radius: 8px; color: white; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-upload:hover { background: #0284c7; transform: translateY(-2px); }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; padding: 30px; overflow-y: auto; }
.img-card { background: rgba(255,255,255,0.03); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.3s; }
.img-card:hover { border-color: #38bdf8; transform: translateY(-5px); }
.img-card img { width: 100%; height: 140px; object-fit: cover; }
.img-card p { padding: 10px; font-size: 0.75rem; text-align: center; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loader { text-align: center; padding: 50px; color: #38bdf8; display: none; }
.modal { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal img { max-width: 90%; max-height: 90%; border-radius: 10px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }