/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

/* LAYOUT */
.layout {
  display: flex;
  height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: #0f172a;
  color: #e5e7eb;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}

.sidebar h2 {
  font-size: 20px;
  margin-bottom: 30px;
  color: #fff;
}

.sidebar a {
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  color: #9ca3af;
  text-decoration: none;
  display: block;
  transition: 0.2s;
}

.sidebar a:hover {
  background: #1e293b;
  color: #fff;
}

.sidebar a.active {
  background: #4f46e5;
  color: #fff;
  font-weight: 500;
}

/* MAIN */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.topbar {
  background: #ffffff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.topbar input {
  width: 280px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.user {
  font-weight: 500;
  color: #374151;
}

/* CONTENT */
.content {
  padding: 24px;
  overflow-y: auto;
}

/* GRID */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* CARDS */
.card {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

/* KPI TEXT */
.card h4 {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.card h2 {
  font-size: 26px;
  margin: 0;
}

/* POSTS */
.post-item {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.post-item p {
  margin: 0 0 6px;
}

.post-item small {
  color: #6b7280;
}

/* BUTTONS */
.btn {
  display: block;
  margin-top: 12px;
  padding: 12px;
  background: #4f46e5;
  color: white;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.btn:hover {
  background: #4338ca;
}

/* SCROLLBAR (premium touch) */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

/* SIDEBAR ICONS */
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
}



/* ACTIVE STATE IMPROVEMENT */
.sidebar a.active {
  background: #4f46e5;
  color: #fff;
}

/* LOGOUT POSITION */
.sidebar .logout {
  margin-top: auto;
  background: #1e293b;
}

.sidebar .logout:hover {
  background: #ef4444;
  color: #fff;
}


.icon svg {
  position: relative;
  top: 1px;
}


/******* GRIDS**** not USED YET *******/
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.feature-card p {
  color: #6b7280;
  margin: 10px 0 20px;
}
/***********CLOSE GRIDS **********/


.brand-card {
  transition: 0.2s;
}

.brand-card:hover {
  transform: translateY(-4px);
}

.brand-actions {
  margin-top: 15px;
}

.brand-actions a {
  display: inline-block;
  margin-right: 10px;
  font-size: 14px;
}

.add-brand {
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  color:#6b7280;
  border:2px dashed #e5e7eb;
}

.add-brand:hover {
  border-color:#4f46e5;
  color:#4f46e5;
}
/* ===== FORM STYLING ===== */

form {
  margin-top: 20px;
}

/* INPUTS */
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 14px;
  transition: 0.2s;
}

/* FOCUS STATE */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #4f46e5;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* TEXTAREA HEIGHT */
textarea {
  min-height: 100px;
  resize: vertical;
}

/* LABELS (optional but recommended) */
label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #6b7280;
}

/* FORM BUTTON */
form .btn {
  width: 100%;
  margin-top: 10px;
}

.error-box {
  background:#fee2e2;
  color:#991b1b;
  padding:10px;
  border-radius:8px;
  margin-bottom:15px;
}

/* checkbox spacing */
label {
  display:block;
  margin-bottom:8px;
}
.tag {
  display:inline-block;
  background:#eef2ff;
  padding:5px 8px;
  border-radius:6px;
  margin-right:5px;
  font-size:12px;
}