:root {
  --primary-bg: #0f172a;
  --secondary-bg: #1e293b;
  --accent: #38bdf8;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f4f6fb;
  color: #0f172a;
}

a {
  text-decoration: none;
  color: inherit;
}

.muted {
  color: #94a3b8;
  font-size: 0.85rem;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #fff;
}

.main-area {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
}

.header-start {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar {
  background: var(--primary-bg);
  color: var(--text-light);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--text-light);
}

.header {
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: calc(100vw - 140px);
}

.header-titles h2 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.2;
}

.header-titles p {
  color: #64748b;
  margin: 0;
  font-size: clamp(0.9rem, 3vw, 1rem);
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #0f172a;
}

.sidebar-overlay {
  display: none;
}

body.sidebar-open {
  overflow: hidden;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-bg);
  display: grid;
  place-items: center;
  color: var(--text-light);
  font-weight: 600;
}

.content {
  padding: 32px;
  background: #f8fafc;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
}

.dashboard-overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(120deg, #0f172a, #0ea5e9);
  color: #fff;
  border: none;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  opacity: 0.8;
}

.hero-text {
  color: rgba(248, 250, 252, 0.8);
  max-width: 520px;
}

.hero-number {
  text-align: right;
}

.hero-number span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-number strong {
  display: block;
  font-size: 2.6rem;
  line-height: 1.2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  background: #0f172a;
  color: #f8fafc;
  border: none;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.stat-card p {
  margin: 0;
  color: rgba(248, 250, 252, 0.8);
}

.stat-card h2 {
  margin: 0;
  font-size: 2.4rem;
}

.badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-muted {
  background: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.badge-blue {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.badge-purple {
  background: rgba(167, 139, 250, 0.25);
  color: #a855f7;
}

.recent-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.recent-link {
  color: #0ea5e9;
  font-weight: 600;
}

.recent-empty {
  margin: 0;
  color: #94a3b8;
}

.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.recent-list li:last-child {
  border-bottom: none;
}

.recent-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.2);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-thumb span {
  font-weight: 600;
  color: #0f172a;
}

.recent-info {
  flex: 1;
}

.recent-info strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
}

.recent-info small {
  color: #94a3b8;
}

.recent-action {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  font-weight: 600;
}

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(120deg, #0f172a, #6366f1);
  color: #fff;
  border: none;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.3);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 600;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.categories-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
}

.category-card__info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-card__info img,
.category-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #0f172a;
}

.category-card__info h4 {
  margin: 0;
}

.category-card__info p {
  margin: 2px 0;
  color: #64748b;
}

.category-card__info p span {
  color: #0f172a;
  font-weight: 600;
}

.category-card__actions {
  display: flex;
  gap: 10px;
}

.products-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.datatable-card {
  padding: 0;
  border: none;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.datatable-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.datatable {
  width: 100%;
  border-collapse: collapse;
}

.datatable thead tr {
  background: #f1f5f9;
}

.datatable th,
.datatable td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.datatable tbody tr:hover {
  background: rgba(148, 163, 184, 0.08);
}

.datatable th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 600;
}

div.dataTables_wrapper {
  padding: 0 28px 24px;
}

div.dataTables_length,
div.dataTables_filter {
  margin: 18px 0 8px;
  color: #475569;
  font-size: 0.9rem;
}

div.dataTables_length select,
div.dataTables_filter input {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #fff;
  margin-left: 8px;
}

.dataTables_info,
.dataTables_paginate {
  padding: 16px 28px;
  color: #475569;
}

.dataTables_paginate .paginate_button {
  padding: 6px 12px;
  margin: 0 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #0f172a !important;
}

.dataTables_paginate .paginate_button.current {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8 !important;
}

.table-thumb {
  width: 72px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #ebf2ff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.price-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price-chip {
  background: rgba(56, 189, 248, 0.12);
  color: #0369a1;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.78rem;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 600;
}

.count-badge.accent {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #0f172a;
  color: #fff;
}

.stat-card.soft {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.stat-card p {
  margin: 0;
  opacity: 0.85;
}

.stat-card h2 {
  margin: 8px 0 4px;
  font-size: 2.2rem;
}

.stat-card span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.product-cell strong {
  display: block;
}

.services-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.service-card__info {
  display: flex;
  gap: 16px;
}

.service-card__info img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.service-card__info h4 {
  margin: 0;
}

.service-card__info p {
  margin: 4px 0;
  color: #64748b;
}

.service-card__actions {
  display: flex;
  gap: 10px;
}

.product-form-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.product-form .media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.media-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.media-preview img {
  width: 100%;
  border-radius: 16px;
  height: 180px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.gallery-item {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.gallery-item img {
  width: 100%;
  border-radius: 8px;
  height: 90px;
  object-fit: cover;
}

.features-repeater {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.feature-row {
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
}

.feature-row:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.1);
}

.feature-row .btn-danger {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feature-row .btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.feature-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-fields.full-width {
  grid-template-columns: 1fr;
}

.feature-fields > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-fields label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.feature-fields input[type="text"] {
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  font-size: 0.9375rem;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.2s ease;
}

.feature-fields input[type="text"]:focus {
  outline: none;
  border-color: #38bdf8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.heading-row {
  padding-bottom: 20px;
}

.heading-row .feature-fields.full-width {
  gap: 20px;
}

.heading-row .quill-editor {
  background: #fff;
  border-radius: 10px;
  min-height: 200px;
}

.heading-row .quill-editor .ql-container {
  min-height: 200px;
  font-size: 0.9375rem;
}

.heading-row .quill-editor .ql-editor {
  min-height: 200px;
  padding: 16px;
}

#addFeature,
#addHeading {
  padding: 14px 24px;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
  margin-top: 8px;
}

#addFeature:hover,
#addHeading:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

#addFeature:active,
#addHeading:active {
  transform: translateY(0);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.product-form-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  padding: 20px;
}

.aside-card img {
  width: 100%;
  border-radius: 12px;
  margin: 12px 0;
  object-fit: cover;
}

.aside-card ul {
  padding-left: 18px;
  color: #475569;
}

.aside-card li {
  margin-bottom: 6px;
}

.aside-placeholder {
  width: 100%;
  border-radius: 12px;
  padding: 32px 12px;
  background: rgba(148, 163, 184, 0.15);
  text-align: center;
  color: #475569;
  font-weight: 600;
}

.gallery-remove {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #dc2626;
}

.current-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.current-icon img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.settings-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.setting-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.setting-section {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.card-header h4 {
  margin: 0 0 4px;
}

.card-header small {
  color: #94a3b8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.form-grid .btn {
  grid-column: 1 / -1;
  justify-self: flex-start;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.flash {
  padding: 16px 20px;
  border-radius: 18px;
  font-weight: 500;
  min-width: 280px;
  max-width: 360px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  letter-spacing: 0.01em;
  background: #0f172a;
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.4);
  opacity: 0;
  transform: translateX(20px) translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.flash.success {
  border-left: 4px solid #22c55e;
  background: linear-gradient(135deg, #047857, #22c55e);
}

.flash.success::before {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.flash.error {
  border-left: 4px solid #f87171;
  background: linear-gradient(135deg, #b91c1c, #f87171);
}

.flash.error::before {
  background: #f87171;
  box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.18);
}

.flash.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.flash.hide {
  opacity: 0;
  transform: translateX(20px) translateY(10px);
}

.flash-container {
  position: fixed;
  top: 20px;
  right: 20px;
  width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 1000;
  pointer-events: none;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #0ea5e9);
  padding: 24px;
}

.login-card {
  max-width: 420px;
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  padding: 32px;
  border-radius: 24px;
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(10px);
}

.login-card h1 {
  margin-top: 0;
  font-size: 1.8rem;
}

.login-card .form-group label {
  color: #cbd5f5;
  font-weight: 500;
}

.login-card .form-group input {
  border: none;
  background: rgba(148, 163, 184, 0.15);
  color: #fff;
  box-shadow: none;
}

.login-card .form-group input::placeholder {
  color: rgba(248, 250, 252, 0.7);
}

.login-card .form-group input:focus {
  border: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
}

.form-group input {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #fff;
  color: #0f172a;
  outline: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #fff;
  color: #0f172a;
  outline: none;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
}

.quill-wrapper {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
  background: #fff;
}

.quill-wrapper .ql-toolbar {
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: #f8fafc;
}

.quill-wrapper .ql-container {
  border: none !important;
  font-family: inherit;
  min-height: 140px;
}

.quill-wrapper .ql-editor {
  min-height: 140px;
}

.select-input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:focus {
  border-color: #38bdf8;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 12px;
  padding: 14px;
  transition: transform 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0f172a;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.btn-danger {
  background: #f87171;
  color: #fff;
}

.btn-sm {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.logout-form {
  margin: 0;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    height: 100vh;
    padding-top: 80px;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .sidebar-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  body.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .profile {
    gap: 8px;
  }

  .header {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-start {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .header-titles {
    width: 100%;
  }

  .profile {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
  }

  .profile-info {
    flex: 1;
  }

  .profile .btn {
    padding: 10px 18px;
  }

  .profile .avatar {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .logout-form {
    margin-left: auto;
  }

  .category-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-card__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .service-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-card__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .product-form .media-grid {
    grid-template-columns: 1fr;
  }

  .table-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .product-form-layout {
    grid-template-columns: 1fr;
  }

  .product-form-aside {
    order: -1;
  }
}
