/* style_admin.css - Business clean theme (front + admin) */
:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --primary:#2563eb;
  --primary-700:#1d4ed8;
  --danger:#dc2626;
  --success:#16a34a;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  --radius:14px;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
}

a{color:var(--primary); text-decoration:none;}
a:hover{color:var(--primary-700); text-decoration:underline;}

.flex-center{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 14px;
}

.card{
  width:min(560px, 100%);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.header-row h2{
  margin:0;
  font-size:20px;
  letter-spacing:.2px;
}
.lang-links{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}
.lang-links a{
  display:inline-block;
  padding:4px 8px;
  border:1px solid transparent;
  border-radius:999px;
  margin-left:4px;
}
.lang-links a:hover{
  text-decoration:none;
  border-color:var(--border);
  background:#f8fafc;
}

.form-group{margin:14px 0;}
label{
  display:block;
  font-size:13px;
  color:var(--text);
  margin:0 0 8px;
  font-weight:600;
}
input[type="text"], input[type="email"], input[type="password"], textarea, select{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  padding:11px 12px;
  font-size:14px;
  outline:none;
  background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease;
}
textarea{resize:vertical; min-height:120px;}
input:focus, textarea:focus, select:focus{
  border-color:rgba(37,99,235,.6);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.captcha-wrapper{
  display:flex;
  align-items:center;
  gap:10px;
}
.captcha-wrapper img{
  height:42px;
  border-radius:10px;
  border:1px solid var(--border);
  cursor:pointer;
}

.code-input{max-width:140px;}

.btn{
  width:100%;
  border:none;
  border-radius:12px;
  padding:11px 12px;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover{background:var(--primary-700);}
.btn:active{transform:translateY(1px);}
.btn:disabled{opacity:.6; cursor:not-allowed;}

.btn-inline{width:auto; padding:10px 14px; white-space:nowrap;}

.btn-outline{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}
.btn-outline:hover{background:#f8fafc;}

.btn-danger{background:var(--danger);}
.btn-danger:hover{filter:brightness(.95);}

.alert{
  border-radius:12px;
  padding:12px 12px;
  font-size:13px;
  border:1px solid var(--border);
  background:#f8fafc;
  margin:14px 0;
}
.alert-success{border-color:rgba(22,163,74,.35); background:rgba(22,163,74,.08); color:#14532d;}
.alert-error{border-color:rgba(220,38,38,.35); background:rgba(220,38,38,.08); color:#7f1d1d;}

.small-muted{color:var(--muted); font-size:12px;}

/* Admin */
.admin-container{
  width:min(1200px, 100%);
  margin:24px auto;
  padding:0 14px;
}
.admin-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px 18px;
  margin-bottom:14px;
}
.admin-header h2{margin:0; font-size:18px;}
.admin-actions{display:flex; gap:10px; align-items:center;}
.admin-actions .btn{width:auto; padding:9px 14px; border-radius:12px;}

.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:12px;
  box-shadow:var(--shadow);
  margin-bottom:14px;
}
.toolbar input, .toolbar select{width:auto; min-width:220px;}
.toolbar .btn{width:auto; padding:10px 14px;}

.table-wrap{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
table{width:100%; border-collapse:collapse;}
thead th{
  text-align:left;
  font-size:12px;
  color:var(--muted);
  background:#f8fafc;
  border-bottom:1px solid var(--border);
  padding:12px;
}
tbody td{
  border-bottom:1px solid var(--border);
  padding:12px;
  font-size:13px;
  vertical-align:top;
}
tbody tr:hover{background:#fafafa;}

.pill{
  display:inline-block;
  font-size:12px;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#f8fafc;
  color:var(--muted);
}
.pill-new{background:rgba(37,99,235,.08); border-color:rgba(37,99,235,.25); color:#1e3a8a;}
.pill-processing{background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.3); color:#7c2d12;}
.pill-done{background:rgba(22,163,74,.10); border-color:rgba(22,163,74,.25); color:#14532d;}
.pill-spam{background:rgba(220,38,38,.10); border-color:rgba(220,38,38,.25); color:#7f1d1d;}

.pagination{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:14px;
}
.pagination a{
  border:1px solid var(--border);
  padding:8px 10px;
  border-radius:10px;
  background:#fff;
}
.pagination a:hover{background:#f8fafc; text-decoration:none;}
