@font-face {
  font-family: "InterLike";
  src: local("Inter"), local("Segoe UI"), local("Roboto");
}
:root{
  --bg:#07080a;
  --panel:#0e1620;
  --card:#0f1720;
  --muted:#9aa6b2;
  --accent:#00bfa6;
  --white:#f7fafc;
  --sidebar:#0d1722;
  --glass: rgba(255,255,255,0.02);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:InterLike,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;}
body{background:var(--bg);color:var(--white);display:flex;}

/* Sidebar */
.sidebar{
  width:220px;
  background:linear-gradient(180deg,var(--sidebar),#071021);
  padding:36px 22px;
  height:100vh;
  position:fixed;
  left:0;top:0;
  display:flex;
  flex-direction:column;
  gap:14px;
  box-shadow: 2px 0 12px rgba(0,0,0,0.6);
}

/* ===== Active Sidebar Link Highlight ===== */
.sidebar a.active {
  background-color: #0f766e; /* Teal accent */
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
}

.brand{font-weight:800;font-size:22px;margin-bottom:6px}
.nav-item {
  color: #b4c0c9;
  padding:10px 12px;
  border-radius:8px;
  text-decoration:none;
  display:block;
  transition: background .18s, color .18s, transform .08s;
}
.nav-item:hover{background:rgba(255,255,255,0.02);color:var(--white);transform:translateX(4px)}
.nav-item.active{background:rgba(0,191,166,0.08);color:var(--accent);}

/* Main content */
.main{
  margin-left:260px;
  padding:48px 64px;
  width: calc(100% - 260px);
  min-height:100vh;
}
.header {
  max-width:980px;
  margin-bottom:28px;
}
h1.big{
  font-size:40px;
  margin:0 0 14px 0;
  font-weight:800;
  letter-spacing:-0.02em;
}
.lead{
  color:var(--muted);
  max-width:780px;
  line-height:1.6;
  margin-bottom:30px;
  font-size:16px;
}

/* Recent section */
.section-title{font-size:24px;margin:20px 0 12px 0;font-weight:700}
.posts {
  display:flex;
  flex-direction:column;
  gap:28px;
  max-width:980px;
}

/* Card (full-width stacked cards like screenshot) */
.post-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
  border: 1px solid rgba(255,255,255,0.03);
  padding:28px;
  border-radius:12px;
  box-shadow: 0 8px 24px rgba(2,6,23,0.6);
}
.post-card h2{margin:0 0 8px 0;font-size:26px}
.meta {
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
  color:var(--muted);
  font-size:13px;
}
.badge{
  background:var(--card);
  padding:4px 9px;
  border-radius:999px;
  color:var(--accent);
  font-weight:700;
  font-size:12px;
  border:1px solid rgba(0,191,166,0.14);
}

/* excerpt */
.excerpt{
  color: #c7d0d7;
  line-height:1.7;
  font-size:15px;
}

/* Blog image on blog page */
.blog-image{
  width:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:10px;
  margin:18px 0;
  border: 1px solid rgba(255,255,255,0.03);
}

/* Admin controls (for admin panel) */
.controls{
  display:flex;
  gap:8px;
  margin-top:12px;
}
.btn{
  background:var(--accent);
  color:#052221;
  border:none;
  padding:8px 14px;
  border-radius:8px;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 6px 18px rgba(0,191,166,0.08);
}
.btn.ghost{
  background:transparent;color:var(--white);border:1px solid rgba(255,255,255,0.04);
}

/* Admin page layout */
.admin-panel{
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
  border: 1px solid rgba(255,255,255,0.03);
  padding:18px;
  border-radius:12px;
  max-width:720px;
}
.form-row{display:flex;gap:12px}
.form-row .col{flex:1}
.input, textarea, select {
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.04);
  background:transparent;color:var(--white);
  font-size:14px;
}
/* ===== Minimal dropdown fix — add near your input/select styles ===== */
select,
select option,
select optgroup {
  background-color: #0f172a !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255,255,255,0.03) !important;
}

select:focus {
  outline: none;
  border-color: #00bfa6 !important;
  box-shadow: 0 0 0 4px rgba(0,191,166,0.12);
}

select::-ms-expand { display: none; }
select { -webkit-appearance: menulist-button; appearance: menulist-button; }

.admin-panel, .post-card, .form-row, .admin-container {
  overflow: visible !important;
}

select { position: relative; z-index: 99


label{display:block;margin-bottom:6px;color:var(--muted);font-size:13px}

/* small helpers */
.small{font-size:13px;color:var(--muted)}
.card-actions{margin-top:12px;display:flex;gap:8px;}

/* responsive */
@media (max-width:900px){
  .sidebar{display:none}
  .main{margin-left:20px;padding:24px}
  .posts{gap:18px}
}
.export-btn {
  background-color: #0d9488; /* teal accent */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 1em;
  transition: 0.2s;
}

.export-btn:hover {
  background-color: #0f766e;
  transform: scale(1.03);
}
.import-btn {
  background-color: #1e3a8a; /* indigo */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 8px;
  margin-bottom: 1em;
  transition: 0.2s;
}

.import-btn:hover {
  background-color: #1d4ed8;
  transform: scale(1.03);
}
.version-badge {
  display: inline-block;
  background-color: #0f766e; /* teal accent */
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.version-badge {
  display: inline-block;
  background-color: #0f766e; /* teal accent */
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
