:root { --p: #2563eb; --bg: #f1f5f9; --red: #ef4444; }
body { font-family: sans-serif; background: var(--bg); margin: 0; padding: 15px; color: #1e293b; }
.header { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 10px 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); flex-wrap: wrap; gap: 10px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 20px; }
.admin-panel { background: #fff; padding: 12px; border-radius: 8px; border: 1px solid #e2e8f0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.card { background: white; border-radius: 10px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; margin-bottom: 10px; }
.link-item { display: flex; justify-content: space-between; padding: 8px; background: #f8fafc; margin: 4px 0; border-radius: 4px; align-items: center; }
.private { border-left: 4px solid var(--red); background: #fff1f2; }
.link-controls { display: flex; align-items: center; gap: 8px; }
.edit-btn { background: none; color: var(--p); border: none; cursor: pointer; }
.text-red { color: var(--red); text-decoration: none; font-weight: bold; }
.drag-handle, .drag-handle-link { cursor: grab; color: #cbd5e1; }
.modal { display: none; position: fixed; z-index: 99; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.modal-content { background: #fff; margin: 15% auto; padding: 20px; border-radius: 8px; width: 280px; }
.modal-content input { width: 100%; margin-bottom: 10px; padding: 5px; }
button { background: var(--p); color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; }
input { padding: 4px; border: 1px solid #ccc; border-radius: 4px; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
