/* =========================================================
   PRABUTRANS ADMIN — Design Tokens
   Primary (Deep Sea Teal):  #0F4C5C
   Sidebar (Darker Teal):    #0B3540
   Accent (Sunset Gold):     #E8A33D
   Success:                  #2F9E6E
   Danger:                   #D64550
   Background:               #F5F7F8
   Text:                     #1D2A30
   ========================================================= */

:root {
  --pt-primary: #0F4C5C;
  --pt-sidebar: #0B3540;
  --pt-accent: #E8A33D;
  --pt-success: #2F9E6E;
  --pt-danger: #D64550;
  --pt-bg: #F5F7F8;
  --pt-text: #1D2A30;
  --pt-border: #E2E8EA;
  --pt-sidebar-text: #B9CBCF;
  --pt-sidebar-active-bg: rgba(232, 163, 61, 0.12);
}

body {
  background-color: var(--pt-bg);
  color: var(--pt-text);
  font-family: 'Inter', -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6, .pt-font-display {
  font-family: 'Poppins', -apple-system, sans-serif;
  font-weight: 600;
  color: var(--pt-text);
}

/* ============ LAYOUT ============ */
.pt-wrapper {
  display: flex;
  min-height: 100vh;
}

.pt-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--pt-sidebar);
  color: var(--pt-sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.pt-main {
  margin-left: 250px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 900px) {
  .pt-sidebar { transform: translateX(-100%); transition: transform .25s ease; z-index: 1050; }
  .pt-sidebar.pt-sidebar-open { transform: translateX(0); }
  .pt-main { margin-left: 0; }
}

/* ============ SIDEBAR ============ */
.pt-sidebar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.35rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pt-sidebar-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--pt-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--pt-sidebar);
  flex-shrink: 0;
}

.pt-sidebar-brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.1;
}

.pt-sidebar-brand-text small {
  display: block;
  font-weight: 400;
  font-size: .68rem;
  color: var(--pt-sidebar-text);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pt-nav {
  list-style: none;
  margin: 0;
  padding: .75rem 0;
  flex: 1;
}

.pt-nav-section {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(185, 203, 207, .55);
  padding: 1rem 1.25rem .4rem;
}

.pt-nav-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .62rem 1.25rem;
  color: var(--pt-sidebar-text);
  text-decoration: none;
  font-size: .89rem;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.pt-nav-link i { font-size: 1rem; width: 18px; text-align: center; }

.pt-nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.pt-nav-link.active {
  background: var(--pt-sidebar-active-bg);
  color: #fff;
  border-left-color: var(--pt-accent);
  font-weight: 600;
}

.pt-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: .78rem;
  color: rgba(185, 203, 207, .6);
}

/* ============ TOPBAR ============ */
.pt-topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--pt-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.pt-topbar-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.pt-topbar-user {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.pt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pt-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .85rem;
}

.pt-menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.3rem;
  color: var(--pt-text);
}

@media (max-width: 900px) {
  .pt-menu-toggle { display: inline-flex; }
}

/* ============ CONTENT ============ */
.pt-content {
  padding: 1.75rem;
  flex: 1;
}

/* ============ CARDS / STATS ============ */
.pt-card {
  background: #fff;
  border: 1px solid var(--pt-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.pt-stat-card {
  background: #fff;
  border: 1px solid var(--pt-border);
  border-left: 4px solid var(--pt-primary);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}

.pt-stat-card .pt-stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pt-text);
  line-height: 1.1;
}

.pt-stat-card .pt-stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6B7B80;
}

/* ============ TABLE ============ */
.pt-table thead th {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6B7B80;
  border-bottom-width: 1px;
  background: #FAFBFC;
}

.pt-table td {
  vertical-align: middle;
  font-size: .9rem;
}

/* ============ BADGES ============ */
.pt-badge {
  display: inline-block;
  padding: .28rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
}
.pt-badge-success { background: rgba(47,158,110,.12); color: var(--pt-success); }
.pt-badge-danger  { background: rgba(214,69,80,.12); color: var(--pt-danger); }
.pt-badge-warning { background: rgba(232,163,61,.15); color: #A56A1B; }
.pt-badge-muted   { background: #EEF1F2; color: #6B7B80; }

/* ============ BUTTONS ============ */
.btn-pt-primary {
  background: var(--pt-primary);
  border-color: var(--pt-primary);
  color: #fff;
}
.btn-pt-primary:hover { background: #0C3B47; border-color: #0C3B47; color: #fff; }

.btn-pt-accent {
  background: var(--pt-accent);
  border-color: var(--pt-accent);
  color: #1D2A30;
  font-weight: 600;
}
.btn-pt-accent:hover { background: #D6912F; border-color: #D6912F; color: #1D2A30; }

/* ============ TOAST ============ */
.pt-toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.pt-toast {
  min-width: 260px;
  background: #fff;
  border-left: 4px solid var(--pt-success);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: .8rem 1rem;
  font-size: .87rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  animation: pt-toast-in .2s ease;
}

.pt-toast.pt-toast-error { border-left-color: var(--pt-danger); }

@keyframes pt-toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============ IMAGE PREVIEW / THUMB ============ */
.pt-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #EEF1F2;
}

.pt-img-preview {
  width: 100%;
  max-width: 220px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--pt-border);
  display: none;
}
