:root{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

/* -------- GLOBAL -------- */
body{
  margin:0;
  background:#f6f7fb;
  color:#111;
}

h1{
  margin:0 0 14px 0;
  font-size:26px;
}

a{
  color:inherit;
}

/* -------- BUTTONS -------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:12px;
  background:#111;
  color:#fff;
  text-decoration:none;
  border:0;
  cursor:pointer;
  font-weight:600;
  transition:background .2s, transform .1s;
}

.btn:hover{
  background:#000;
}

.btn:active{
  transform:scale(.98);
}

.btn.danger{
  background:#b00020;
}

/* -------- ADMIN LAYOUT -------- */
.admin-wrap{
  max-width:1100px;
  margin:24px auto;
  padding:16px;
}

.admin-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.admin-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* -------- CARDS -------- */
.card{
  padding:16px;
  border-radius:16px;
  background:#fff;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
  display:block;
  color:#111;
  text-decoration:none;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:14px 0;
}

@media(max-width:800px){
  .cards{grid-template-columns:1fr}
}

/* -------- ALERTS -------- */
.alert{
  padding:12px 14px;
  border-radius:12px;
  background:#ffebee;
  color:#b00020;
  margin:12px 0;
  font-size:14px;
}

/* -------- TEXT -------- */
.muted{color:#666}
.small{font-size:12px}
.prose{line-height:1.6}

/* -------- TOOLBAR -------- */
.toolbar{
  margin:14px 0;
}

/* -------- TABLE -------- */
.table-wrap{
  overflow:auto;
  background:#fff;
  border-radius:16px;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  padding:12px 14px;
  border-bottom:1px solid #eee;
  vertical-align:top;
  font-size:14px;
}

.table th{
  background:#fafafa;
  font-weight:700;
}

/* -------- FORMS -------- */
.form label{
  display:block;
  margin:12px 0 6px 0;
  font-weight:600;
  font-size:14px;
}

.form input,
.form select,
.form textarea{
  width:87%;
  padding:12px 14px;
  border:1px solid #ddd;
  border-radius:12px;
  background:#fff;
  font-size:14px;
  transition:border-color .2s, box-shadow .2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus{
  outline:none;
  border-color:#111;
  box-shadow:0 0 0 3px rgba(0,0,0,.08);
}

/* -------- GRIDS -------- */
.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.grid3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

@media(max-width:900px){
  .grid2,.grid3{grid-template-columns:1fr}
}

/* -------- IMAGES -------- */
.img-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:12px;
}

@media(max-width:900px){
  .img-grid{grid-template-columns:repeat(2,1fr)}
}

.img-card{
  background:#fff;
  border-radius:16px;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
  overflow:hidden;
}

.img-card img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

.img-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:12px;
}

/* -------- BADGES -------- */
.badge{
  padding:6px 12px;
  border-radius:999px;
  background:#e8f5e9;
  color:#1b5e20;
  font-weight:700;
  font-size:12px;
}

/* ============================= */
/* ========= LOGIN PAGE ========= */
/* ============================= */

.login-container{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#0f2027,#203a43,#2c5364);
}

.login-card{
  width:100%;
  max-width:380px;
  background:#fff;
  padding:32px 28px;
  border-radius:18px;
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}

.login-card h1{
  text-align:center;
  margin-bottom:24px;
}

.login-form .form-group{
  display:flex;
  flex-direction:column;
  margin-bottom:16px;
}

.btn-login{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:0;
  background:#111;
  color:#fff;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

.btn-login:hover{
  background:#000;
}
