@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --admin-primary: #0f172a;
  --admin-accent: #ff6000;
  --admin-accent-hover: #ea580c;
  --admin-sidebar-bg: #0f172a;
  --admin-sidebar-hover: #1e293b;
  --admin-sidebar-active: #ff6000;
  --admin-bg: #f8fafc;
  --admin-card-bg: #ffffff;
  --admin-border: #cbd5e1;
  --admin-border-subtle: #f1f5f9;
  --admin-border-dark: #334155;
  --admin-text-main: #0f172a;
  --admin-text-muted: #64748b;
  --admin-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --admin-shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* 100% Sharp edge everywhere */
}

html {
  font-size: 14px; /* Compact readable admin scaling */
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background-color: var(--admin-sidebar-bg);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: all 0.2s ease;
  z-index: 100;
  border-right: 1px solid #1e293b;
}

@media (max-width: 991px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -260px;
  }
  .admin-sidebar.open {
    left: 0;
  }
}

.admin-brand {
  padding: 1.25rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1e293b;
  letter-spacing: -0.3px;
}
.admin-brand span {
  color: var(--admin-accent);
}
.admin-brand .admin-tag {
  background: var(--admin-accent);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  font-weight: 900;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.admin-nav {
  padding: 0.75rem 0.5rem;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 800;
  color: #64748b;
  padding: 0.6rem 0.75rem 0.3rem;
  margin-top: 0.4rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #cbd5e1;
  margin-bottom: 2px;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
.admin-nav-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}
.admin-nav-item:hover {
  background: var(--admin-sidebar-hover);
  color: white;
  border-left-color: var(--admin-accent);
}
.admin-nav-item.active {
  background: #1e293b;
  color: white;
  border-left-color: var(--admin-accent);
}

/* Main Area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-header {
  height: 64px;
  background: white;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.admin-sidebar-toggle-btn {
  display: none;
}

@media (max-width: 991px) {
  .admin-sidebar-toggle-btn {
    display: inline-flex;
  }
  .d-none-mobile {
    display: none;
  }
}

.admin-content {
  padding: 1.75rem;
  flex: 1;
}

/* Dashboard Cards Grid */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--admin-border);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--admin-shadow);
  transition: all 0.2s ease;
}
.stat-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: var(--admin-shadow-hover);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.stat-icon.blue { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.stat-icon.green { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.stat-icon.amber { background: #fff7ed; color: #ff6000; border-color: #fed7aa; }
.stat-icon.purple { background: #faf5ff; color: #7c3aed; border-color: #e9d5ff; }

.stat-info h3 {
  font-size: 1.45rem;
  font-weight: 900;
  margin-top: 2px;
  color: #0f172a;
}
.stat-info p {
  font-size: 0.74rem;
  color: var(--admin-text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Table Card */
.admin-card {
  background: white;
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  margin-bottom: 1.75rem;
}
.admin-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.admin-card-title {
  font-size: 0.98rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #0f172a;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  background: #f8fafc;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #334155;
  border-bottom: 1px solid var(--admin-border);
}
.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--admin-border-subtle);
  font-size: 0.88rem;
  color: #0f172a;
}
.admin-table tbody tr:hover {
  background: #f8fafc;
}

/* Numeric / Price / Stock Right-alignment in Tables */
.admin-table th.col-num,
.admin-table td.col-num,
.admin-table th.col-price,
.admin-table td.col-price,
.admin-table th.col-stock,
.admin-table td.col-stock,
.text-right {
  text-align: right !important;
}

.admin-table td.col-num,
.admin-table td.col-price,
.admin-table td.col-stock {
  font-variant-numeric: tabular-nums;
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.status-badge.paid { background: #ecfdf5; color: #059669; }
.status-badge.unpaid { background: #fef9c3; color: #a16207; }
.status-badge.shipped { background: #eff6ff; color: #2563eb; }
.status-badge.pending { background: #fef2f2; color: #dc2626; }
.status-badge.delivered { background: #f0fdf4; color: #16a34a; }

/* Form Control Sharp */
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--admin-border);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  background: white;
  outline: none;
  transition: all 0.15s ease;
}
.form-control:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 2px rgba(255, 96, 0, 0.15);
}

/* Dropzone Sharp Style in Admin */
.dropzone {
  border: 1.5px dashed var(--admin-border) !important;
  background: #f8fafc !important;
  padding: 1.25rem !important;
}
.dropzone .dz-preview .dz-image {
  border-radius: 0px !important;
  border: 1px solid var(--admin-border);
}
.dropzone .dz-preview .dz-remove {
  background: #ef4444;
  color: white;
  padding: 3px 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  margin-top: 5px;
}

/* Admin Action Buttons */
.btn-admin-primary {
  background: var(--admin-primary);
  color: white;
  border: 1px solid var(--admin-border);
  padding: 9px 18px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--admin-shadow);
  transition: all 0.15s ease;
}
.btn-admin-primary:hover {
  background: #1e293b;
  box-shadow: var(--admin-shadow-hover);
}

/* Summernote Editor Clean Admin Theme */
.note-editor.note-frame {
  border: 1px solid var(--admin-border) !important;
  box-shadow: none !important;
  background: #ffffff !important;
}
.note-editor.note-frame:focus-within {
  border-color: var(--admin-accent) !important;
}
.note-editor .note-toolbar {
  background: #f8fafc !important;
  border-bottom: 1px solid var(--admin-border) !important;
  padding: 6px 10px !important;
}
.note-editor .note-editing-area {
  background: #ffffff !important;
}
.note-editor .note-editable {
  font-family: inherit !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  min-height: 220px !important;
  color: #0f172a !important;
}
.note-editor .note-editable img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 4px;
}
.note-editor .note-statusbar {
  background: #f8fafc !important;
  border-top: 1px solid #f1f5f9 !important;
}
.note-editor .note-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  padding: 4px 8px !important;
  font-size: 0.8rem !important;
}
.note-editor .note-btn:hover {
  background: #fff7ed !important;
  color: #ff6000 !important;
  border-color: #ff6000 !important;
}

