/* frontend.css - polished UI */
.egde-embed-wrap { max-width:100%; box-shadow: 0 6px 20px rgba(0,0,0,0.08); border-radius:6px; overflow:hidden; }
.egde-embed-link { display:inline-block; padding:8px 12px; background:#0073aa; color:#fff; border-radius:4px; text-decoration:none; }
.egde-file-browser { border:1px solid #e6e6e6; border-radius:6px; padding:12px; background:#fff; min-height:200px; }
.egde-gallery { display:grid; gap:12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.egde-gallery-item img { width:100%; height:140px; object-fit:cover; border-radius:6px; transition: transform .18s ease; }
.egde-gallery-item img:hover { transform:scale(1.03); }
.egde-file-item { display:flex; align-items:center; gap:12px; padding:10px; border-radius:6px; transition: background .12s ease, box-shadow .12s ease; }
.egde-file-item:hover { background:#f7fbff; box-shadow:0 6px 16px rgba(3,63,128,0.04); }
.egde-file-name { font-weight:600; }
.egde-file-meta { color:#666; font-size:13px; }
.egde-popup-content { background:#fff; border-radius:8px; box-shadow:0 20px 60px rgba(11,22,57,0.24); max-width:960px; width:94%; max-height:80vh; overflow:hidden; position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:100000; }
.egde-popup-header { background: linear-gradient(90deg,#0073aa,#006097); color:#fff; padding:18px; display:flex; justify-content:space-between; align-items:center; }
.egde-popup-header h2 { margin:0; font-size:18px; }
.egde-close-popup { background:transparent; border:0; color:#fff; font-size:20px; cursor:pointer; }
.egde-tabs { display:flex; gap:6px; padding:10px; background:#fafafa; border-bottom:1px solid #eee; }
.egde-tab { padding:8px 12px; border-radius:6px; cursor:pointer; user-select:none; }
.egde-tab.active { background:#fff; box-shadow:0 4px 18px rgba(3,63,128,0.06); }
.egde-tab-content { padding:16px; max-height:420px; overflow:auto; }
.egde-loading { text-align:center; padding:28px; color:#555; }
.egde-error { padding:12px; background:#fff6f6; color:#b00020; border-radius:6px; }
#egde-search-input { width:60%; padding:8px; border:1px solid #ddd; border-radius:6px; }
#egde-search-btn { padding:8px 12px; border-radius:6px; background:#0073aa; color:#fff; border:0; cursor:pointer; }
.egde-file-actions a { margin-right:8px; }
.egde-sidebar-app .button { width:100%; margin-bottom:6px; }
