* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; background: #0f1117; color: #e5e7eb; }
a { color: inherit; }
.container { width: 100%; min-height: 100vh; padding: 24px; }
.card { background: #131722; border: 1px solid #1f2937; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.header { padding: 18px 22px; border-bottom: 1px solid #1f2937; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.header h1 { margin: 0; font-size: 20px; color: #fff; }
.header-right { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.btn, .btn-secondary, .btn-danger { border: none; padding: 10px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn { background: #22c55e; color: #08110d; }
.btn-secondary { background: #1f2937; color: #e5e7eb; }
.btn-danger { background: #ef4444; color: white; }
.toolbar { padding: 14px 22px; border-bottom: 1px solid #1f2937; display: flex; gap: 12px; flex-wrap: wrap; background: #121826; }
.toolbar input, .toolbar select, .form-control { background: #0f172a; border: 1px solid #273042; color: #fff; padding: 10px 14px; border-radius: 10px; outline: none; }
.toolbar input:focus, .toolbar select:focus, .form-control:focus { border-color: #22c55e; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1200px; }
thead { background: #111827; }
thead th { text-align: left; font-size: 13px; font-weight: 600; color: #9ca3af; padding: 16px 14px; border-bottom: 1px solid #1f2937; white-space: nowrap; }
tbody tr { border-bottom: 1px solid #1f2937; }
tbody tr:hover { background: #161b26; }
tbody td { padding: 16px 14px; vertical-align: middle; font-size: 14px; }
.check-cell { width: 42px; text-align: center; }
.by { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #6b7280; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.time { color: #d1d5db; font-weight: 500; }
.shortlink a { color: #22c55e; text-decoration: none; font-weight: 500; }
.shortlink a:hover, .origin-title:hover { text-decoration: underline; }
.link-inline { display: flex; align-items: center; gap: 8px; }
.copy-btn, .icon-btn { background: transparent; border: 1px solid #2c3444; color: #9ca3af; min-width: 30px; height: 30px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.copy-btn:hover, .icon-btn:hover { border-color: #22c55e; color: #22c55e; }
.origin { max-width: 540px; }
.origin-title { display: inline-block; color: #f3f4f6; font-weight: 500; text-decoration: none; margin-bottom: 4px; line-height: 1.4; }
.origin-url { color: #9ca3af; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted-center { text-align: center; color: #9ca3af; font-weight: 600; }
.tag { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.25); color: #86efac; font-size: 12px; font-weight: 600; }
.actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.notice { margin: 16px 22px 0; padding: 12px 14px; border-radius: 10px; }
.notice.success { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .25); color: #86efac; }
.notice.error { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .25); color: #fca5a5; }
.form-wrap { max-width: 760px; padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 600; color: #d1d5db; }
textarea.form-control { min-height: 120px; resize: vertical; }
.small { font-size: 12px; color: #94a3b8; }
.login-page { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:20px; }
.login-card { width:100%; max-width:420px; background:#131722; border:1px solid #1f2937; border-radius:18px; padding:28px; box-shadow:0 10px 30px rgba(0,0,0,.3); }
.login-title { margin:0 0 8px; font-size:28px; font-weight:800; color:#fff; }
.login-sub { margin:0 0 24px; color:#94a3b8; }
.user-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background:#0f172a; border:1px solid #273042; color:#cbd5e1; font-size:13px; }
@media (max-width: 768px) { .container { padding: 12px; } .form-grid { grid-template-columns: 1fr; } }
.error-box {
    animation: shake 0.3s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
