/* Infinity Trip Planners - Admin Panel CSS - Premium & Professional */

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  min-width: 40px;
}

.pagination-btn:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.action-btn.loading .fas::before {
  display: none;
}

.action-btn.loading::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position: absolute;
}

:root {
  --primary-color: #fc1c03;
  --primary-hover: #d91602;
  --primary-light: rgba(252, 28, 3, 0.08);
  --sidebar-bg: #1a1a1a;
  --sidebar-dark: #0f0f0f;
  --sidebar-hover: #252525;
  --sidebar-active: #fc1c03;
  --text-light: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-light: rgba(255, 255, 255, 0.08);
  --header-height: 80px;
  --sidebar-width: 270px;
  --card-bg: #ffffff;
  --border-color: #e5e5e5;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 50%, #f0f2f5 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
}

/* ==================== LOGIN PAGE ==================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1f 50%, #1a1a1a 100%);
  background-attachment: fixed;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-wrapper::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(252, 28, 3, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 107, 107, 0.1) 0%,
      transparent 40%
    );
  animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.login-wrapper::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  animation: shimmer 15s infinite linear;
}

@keyframes shimmer {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  width: 100%;
  max-width: 450px;
  padding: 50px 40px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo img {
  max-width: 160px;
  border-radius: var(--radius-sm);
}

.login-logo h2 {
  margin-top: 15px;
  font-size: 24px;
  color: var(--text-primary);
  font-weight: 700;
}

.login-title {
  text-align: center;
  margin-bottom: 30px;
}

.login-title h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  transition: var(--transition);
  background: #fafbfc;
  font-family: "Inter Tight", sans-serif;
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(252, 28, 3, 0.08),
    0 4px 12px rgba(252, 28, 3, 0.08);
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  transition: var(--transition);
}

.input-icon input:focus + i {
  color: var(--primary-color);
}

.input-icon input {
  padding-left: 45px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.forgot-link {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: "Inter Tight", sans-serif;
  gap: 7px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
  color: #fff;
  width: auto;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #ff5252 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(252, 28, 3, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-sm i {
  font-size: 11px;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.login-footer {
  text-align: center;
  margin-top: 25px;
}
.login-footer p {
  font-size: 13px;
  color: var(--text-secondary);
}
.login-footer a {
  color: var(--primary-color);
  font-weight: 600;
}

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

/* Premium Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 50%, #1a1a1a 100%);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      ellipse at top left,
      rgba(252, 28, 3, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom right,
      rgba(255, 107, 107, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.sidebar-header {
  padding: 25px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sidebar-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(252, 28, 3, 0.3),
    transparent
  );
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

/* Sidebar Mobile */
@media (max-width: 992px) {
  .sidebar-close {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.active {
    transform: translateX(0);
  }
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-logo img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sidebar-logo span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-menu {
  padding: 20px 12px;
}

.menu-section {
  margin-bottom: 8px;
}

.menu-section-title {
  padding: 12px 15px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.menu-item {
  margin-bottom: 4px;
}

.menu-item > a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 10px;
  margin: 2px 0;
  position: relative;
  overflow: hidden;
}

.menu-item > a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: 0.5s;
}

.menu-item:hover > a::after {
  left: 100%;
}

.menu-item > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary-color);
  border-radius: 0 3px 3px 0;
  transition: var(--transition);
}

.menu-item > a i {
  width: 20px;
  margin-right: 12px;
  font-size: 17px;
  text-align: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.menu-item > a span {
  flex: 1;
}

.menu-item > a .arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: var(--transition);
  margin-left: auto;
}

.menu-item:hover > a,
.menu-item.active > a {
  color: #fff;
}

.menu-item:hover > a i,
.menu-item.active > a i {
  color: var(--primary-color);
}

.menu-item.active > a {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
  box-shadow: 0 4px 15px rgba(252, 28, 3, 0.35);
}

.menu-item.active > a i {
  color: #fff;
}
.menu-item.active > a .arrow {
  color: #fff;
  transform: rotate(90deg);
}
.menu-item.active > a::before {
  height: 100%;
}

.submenu {
  display: none;
  padding: 5px 0 5px 20px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin: 5px 0;
}

.menu-item.active > .submenu {
  display: block;
}

.submenu-item a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--text-muted);
  font-size: 13px;
  transition: var(--transition);
  border-radius: 8px;
  margin: 2px 0;
}

.submenu-item a:hover {
  color: #fff;
  background: rgba(252, 28, 3, 0.15);
}

.submenu-item.active a {
  color: #fff;
  background: var(--primary-color);
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: transparent;
  width: calc(100% - var(--sidebar-width));
  display: flex;
  flex-direction: column;
}

.main-content .page-content {
  flex: 1;
}

/* Footer */
.admin-footer {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.admin-footer p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.header {
  background: #ffffff;
  padding: 0 30px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e5e7eb;
}

.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    #ff6b6b,
    var(--primary-color)
  );
  background-size: 200% 100%;
  animation: headerGradient 3s ease infinite;
}

@keyframes headerGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #374151;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

/* Show menu toggle only on tablet and mobile */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }
}

.page-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.3px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li::after {
  content: "/";
  color: #d1d5db;
  margin-left: 8px;
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

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

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

.header-search {
  position: relative;
  width: 320px;
}

.header-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  background: #f9fafb;
  transition: var(--transition);
  font-family: "Inter Tight", sans-serif;
  color: #111827;
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(252, 28, 3, 0.08);
}

.header-search input::placeholder {
  color: #9ca3af;
}

.header-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  transition: var(--transition);
}

.header-search input:focus + i {
  color: var(--primary-color);
}

.header-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f9fafb;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.header-icon:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.header-icon .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid #fff;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.user-profile:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  padding: 2px;
  background: #fff;
}

.user-profile .user-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.user-profile .user-info p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

/* Page Content */
.page-content {
  padding: 30px;
  background: transparent;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  position: relative;
}

.page-header h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
  border-radius: 2px;
}

.page-header .btn-primary {
  padding: 8px 16px;
  font-size: 13px;
}

.page-header .btn-primary i {
  font-size: 12px;
}

/* Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(252, 28, 3, 0.1);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  background: linear-gradient(
    135deg,
    rgba(250, 251, 252, 0.8) 0%,
    rgba(249, 250, 251, 0.6) 100%
  );
}

.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.card-body {
  padding: 22px;
}
.card-body.no-padding {
  padding: 0;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid #f3f4f6;
  background: linear-gradient(
    135deg,
    rgba(249, 250, 251, 0.8) 0%,
    rgba(248, 250, 252, 0.6) 100%
  );
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition);
}

.stat-card:nth-child(1)::before {
  background: linear-gradient(
    135deg,
    rgba(252, 28, 3, 0.05) 0%,
    transparent 100%
  );
}
.stat-card:nth-child(2)::before {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.05) 0%,
    transparent 100%
  );
}
.stat-card:nth-child(3)::before {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.05) 0%,
    transparent 100%
  );
}
.stat-card:nth-child(4)::before {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 100%
  );
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.stat-card:nth-child(1)::after {
  background: linear-gradient(180deg, var(--primary-color) 0%, #ff6b6b 100%);
}
.stat-card:nth-child(2)::after {
  background: linear-gradient(180deg, var(--success) 0%, #4ade80 100%);
}
.stat-card:nth-child(3)::after {
  background: linear-gradient(180deg, var(--warning) 0%, #fbbf24 100%);
}
.stat-card:nth-child(4)::after {
  background: linear-gradient(180deg, var(--info) 0%, #60a5fa 100%);
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.8);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon.primary {
  background: linear-gradient(
    135deg,
    rgba(252, 28, 3, 0.15) 0%,
    rgba(252, 28, 3, 0.05) 100%
  );
  color: var(--primary-color);
  border: 1px solid rgba(252, 28, 3, 0.15);
}
.stat-icon.success {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15) 0%,
    rgba(34, 197, 94, 0.05) 100%
  );
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.15);
}
.stat-icon.warning {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.15) 0%,
    rgba(245, 158, 11, 0.05) 100%
  );
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.stat-icon.info {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(59, 130, 246, 0.05) 100%
  );
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.stat-info h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 3px;
}
.stat-info p {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
.stat-info .trend {
  font-size: 11px;
  font-weight: 600;
}
.stat-info .trend.up {
  color: var(--success);
}

/* Tables */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead {
  background: linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
}

table th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4b5563;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

table td {
  padding: 16px 18px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 13px;
  color: #374151;
}

table tbody tr {
  transition: var(--transition);
}
table tbody tr:hover {
  background: linear-gradient(
    90deg,
    rgba(252, 28, 3, 0.02) 0%,
    rgba(252, 28, 3, 0.05) 100%
  );
}

table tbody tr:hover td:first-child {
  border-left: 3px solid var(--primary-color);
}

.table-image {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #fff;
}

.table-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.2);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.2);
}
.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}
.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
  border-color: rgba(59, 130, 246, 0.2);
}
.badge-primary {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: rgba(252, 28, 3, 0.2);
}

.action-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: var(--transition);
}

.action-btn.edit {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}
.action-btn.edit:hover {
  background: var(--info);
  color: #fff;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.action-btn.delete {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}
.action-btn.delete:hover {
  background: var(--danger);
  color: #fff;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.action-btn.view {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}
.action-btn.view:hover {
  background: var(--success);
  color: #fff;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

.action-btn:hover::before {
  opacity: 1;
}

/* Form Styles */
.form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.form-card h3 {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-grid .form-group.full-width {
  grid-column: span 2;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
}

.file-upload {
  border: 2px dashed #d1d5db;
  border-radius: 14px;
  padding: 45px 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
}

.file-upload:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
  transform: scale(1.01);
  box-shadow: 0 4px 20px rgba(252, 28, 3, 0.1);
}

.file-upload i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.file-upload p {
  margin-bottom: 10px;
}
.file-upload span {
  color: var(--primary-color);
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 18px;
  color: var(--text-secondary);
}

.modal-close:hover {
  background: var(--danger);
  color: #fff;
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.view-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.view-row {
  display: flex;
  gap: 10px;
}
.view-row .label {
  font-weight: 600;
  min-width: 120px;
  color: var(--text-dark);
}
.view-row .value {
  color: var(--text-secondary);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-family: "Inter Tight", sans-serif;
  border-radius: 8px 8px 0 0;
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
  border-radius: 2px;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--primary-color);
  background: var(--primary-light);
}

.tab-btn.active::after {
  transform: translateX(-50%) scaleX(1);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
}

.pagination button:hover,
.pagination button.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(252, 28, 3, 0.3);
  transform: translateY(-2px);
}

/* Search */
.search-filter {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  font-family: "Inter Tight", sans-serif;
  background: #fafbfc;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(252, 28, 3, 0.08),
    0 4px 12px rgba(252, 28, 3, 0.08);
}

.search-box i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}

.filter-group select {
  padding: 11px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  min-width: 140px;
  font-family: "Inter Tight", sans-serif;
  background: #fafbfc;
  cursor: pointer;
  transition: var(--transition);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(252, 28, 3, 0.08);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d1d5db;
  border-radius: 26px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
  box-shadow: 0 2px 8px rgba(252, 28, 3, 0.4);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-action {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.quick-action::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(252, 28, 3, 0.02) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: var(--transition);
}

.quick-action:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.quick-action:hover::before {
  opacity: 1;
}

.quick-action i {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.quick-action p {
  font-size: 12px;
  font-weight: 500;
}

/* Activity */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  gap: 15px;
  padding: 16px;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.activity-item:hover {
  background: linear-gradient(
    135deg,
    rgba(252, 28, 3, 0.02) 0%,
    rgba(252, 28, 3, 0.05) 100%
  );
  transform: translateX(4px);
  border-color: rgba(252, 28, 3, 0.1);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-content h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.activity-content p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Image Preview */
.image-preview {
  width: 150px;
  height: 150px;
  border-radius: 14px;
  border: 2px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 10px;
  background: linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
  transition: var(--transition);
}

.image-preview:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(252, 28, 3, 0.1);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Utility */
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary-color) !important;
}
.text-success {
  color: var(--success) !important;
}
.text-danger {
  color: var(--danger) !important;
}
.text-warning {
  color: var(--warning) !important;
}
.text-muted {
  color: var(--text-secondary) !important;
}

.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}
.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}

.d-flex {
  display: flex;
}
.d-none {
  display: none !important;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 10px;
}
.gap-2 {
  gap: 20px;
}
.w-100 {
  width: 100%;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  .menu-toggle {
    display: block;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .form-group.full-width {
    grid-column: span 1;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .header {
    padding: 0 15px;
  }
  .user-profile .user-info {
    display: none;
  }

  /* Table responsive */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 600px;
  }

  /* Page header on mobile */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-header .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-content {
    padding: 15px;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .search-filter {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: none;
    width: 100%;
  }
  .card-body {
    padding: 15px;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  table {
    font-size: 12px;
    min-width: 500px;
  }
  table th,
  table td {
    padding: 10px 12px;
    white-space: nowrap;
  }
  .form-card {
    padding: 20px;
  }
  .modal-content {
    margin: 10px;
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }
  .modal-body {
    padding: 20px;
  }
  .form-group {
    margin-bottom: 15px;
  }

  /* Action buttons - compact on tablet */
  .action-btns {
    gap: 6px;
  }
  .action-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* Pagination */
  .pagination {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .pagination-btn {
    padding: 6px 10px;
    min-width: 35px;
    font-size: 12px;
  }

  /* Form responsive */
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .form-group.full-width {
    grid-column: span 1;
  }
}

/* ==================== RESPONSIVE: LAPTOP/MAC ==================== */
@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-content {
    padding: 24px;
  }
}

/* ==================== RESPONSIVE: TABLET ==================== */
@media (max-width: 992px) {
  :root {
    --header-height: 64px;
  }

  .header {
    padding: 0 20px;
    height: var(--header-height);
  }

  .header-search {
    width: 180px;
  }

  .header-search input {
    padding: 10px 14px 10px 36px;
    font-size: 13px;
  }

  .header-search i {
    left: 12px;
    font-size: 14px;
  }

  .header-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .header-icon .badge {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .user-profile {
    padding: 4px 10px 4px 4px;
  }

  .user-profile img {
    width: 34px;
    height: 34px;
  }

  .page-title h2 {
    font-size: 18px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stat-card {
    padding: 16px;
    gap: 12px;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .stat-info h4 {
    font-size: 20px;
  }

  /* Cards */
  .card-header {
    padding: 14px 16px;
  }

  .card-body {
    padding: 16px;
  }

  /* Table */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px;
  }

  table th,
  table td {
    padding: 10px 12px;
  }

  /* Form */
  .form-card {
    padding: 20px;
  }

  .form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .form-section-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .form-section-header i {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .form-section-header h3 {
    font-size: 16px;
  }

  /* Buttons - NOT too big on tablet */
  .btn {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 8px;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Tags */
  .tags-input {
    padding: 10px 12px;
    min-height: 46px;
  }

  .tags-input input {
    min-width: 120px;
    font-size: 13px;
  }

  .tag {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Itinerary */
  .itinerary-item {
    padding: 16px;
    margin-bottom: 14px;
  }

  .itinerary-day {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .itinerary-day h4 {
    font-size: 13px;
    padding: 6px 12px;
  }

  .itinerary-day h4 i {
    font-size: 13px;
  }

  .itinerary-remove {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Action buttons */
  .action-btn {
    width: 30px;
    height: 30px;
    font-size: 11px;
    border-radius: 6px;
  }

  /* Quick actions */
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== RESPONSIVE: MOBILE ==================== */
@media (max-width: 768px) {
  .header-search {
    display: none;
  }

  .user-profile {
    padding: 4px 8px 4px 4px;
  }

  .user-profile img {
    width: 32px;
    height: 32px;
  }

  .user-profile .user-info {
    display: none;
  }

  .header-right {
    gap: 10px;
  }

  .header-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
    border-radius: 8px;
  }

  .page-title h2 {
    font-size: 16px;
  }

  .breadcrumb {
    font-size: 11px;
    gap: 4px;
  }

  .breadcrumb li::after {
    margin-left: 4px;
  }

  /* Page content */
  .page-content {
    padding: 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-header h2 {
    font-size: 18px;
  }

  .page-header .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats - single column on mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 14px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    flex-shrink: 0;
  }

  .stat-info h4 {
    font-size: 18px;
  }

  .stat-info p {
    font-size: 12px;
  }

  /* Cards */
  .card {
    border-radius: 12px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .card-header h3 {
    font-size: 14px;
  }

  .card-body {
    padding: 12px;
  }

  /* Search filter */
  .search-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-box {
    max-width: none;
    width: 100%;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group select {
    width: 100%;
  }

  /* Table */
  table {
    font-size: 12px;
    min-width: 500px;
  }

  table th,
  table td {
    padding: 8px 10px;
  }

  .table-image {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }

  .table-badge {
    padding: 4px 8px;
    font-size: 10px;
  }

  /* Action buttons - small on mobile */
  .action-btns {
    gap: 4px;
  }

  .action-btn {
    width: 26px;
    height: 26px;
    font-size: 10px;
    border-radius: 5px;
  }

  /* Buttons - not too big on mobile */
  .btn {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 8px;
    gap: 6px;
  }

  .btn i {
    font-size: 11px;
  }

  .btn-sm {
    padding: 7px 10px;
    font-size: 11px;
    border-radius: 6px;
  }

  .btn-sm i {
    font-size: 10px;
  }

  /* Form */
  .form-card {
    padding: 16px;
    border-radius: 12px;
  }

  .form-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .form-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .form-section-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .form-section-header i {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .form-section-header h3 {
    font-size: 14px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group label {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .form-control {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  textarea.form-control {
    min-height: 80px;
  }

  /* Tags - compact on mobile */
  .tags-input {
    padding: 8px 10px;
    gap: 6px;
    min-height: 42px;
    border-radius: 8px;
  }

  .tags-input input {
    min-width: 100px;
    font-size: 12px;
  }

  .tag {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 15px;
    gap: 4px;
  }

  /* Itinerary - compact */
  .itinerary-item {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .itinerary-day {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .itinerary-day h4 {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
  }

  .itinerary-day h4 i {
    font-size: 11px;
  }

  .itinerary-remove {
    width: 100%;
    justify-content: center;
    padding: 8px;
    font-size: 11px;
    border-radius: 6px;
  }

  /* Add day button */
  .btn-add-day {
    padding: 12px;
    font-size: 12px;
    border-radius: 8px;
  }

  /* Modal */
  .modal-content {
    margin: 8px;
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    border-radius: 12px;
  }

  .modal-header {
    padding: 12px 14px;
  }

  .modal-header h3 {
    font-size: 14px;
  }

  .modal-body {
    padding: 14px;
  }

  .modal-footer {
    padding: 10px 14px;
    gap: 8px;
  }

  .modal-footer .btn {
    flex: 1;
    padding: 10px;
  }

  /* Pagination */
  .pagination {
    gap: 4px;
  }

  .pagination button {
    width: 32px;
    height: 32px;
    font-size: 12px;
    border-radius: 6px;
  }

  /* Quick actions */
  .quick-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quick-action {
    padding: 14px;
  }

  .quick-action i {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .quick-action p {
    font-size: 11px;
  }

  /* Footer */
  .admin-footer {
    padding: 12px 16px;
  }

  .admin-footer p {
    font-size: 11px;
  }
}

/* ==================== EXTRA SMALL ==================== */
@media (max-width: 400px) {
  .header {
    padding: 0 12px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .page-content {
    padding: 12px;
  }

  .page-title h2 {
    font-size: 15px;
  }

  .breadcrumb {
    font-size: 10px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .action-btn {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }
}
.header-right {
  gap: 8px;
}
.header-icon {
  width: 36px;
  height: 36px;
}
.page-title h2 {
  font-size: 18px;
}
.breadcrumb {
  font-size: 11px;
  flex-wrap: wrap;
}
.action-btns {
  gap: 5px;
}
.action-btn {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.quick-actions {
  grid-template-columns: 1fr;
}
.user-profile img {
  width: 35px;
  height: 35px;
}

/* Cards */
.card {
  border-radius: 10px;
}
.card-header {
  padding: 14px;
}
.card-body {
  padding: 14px;
}

/* Modal */
.modal-header {
  padding: 14px 18px;
}
.modal-header h3 {
  font-size: 16px;
}
.modal-footer {
  padding: 14px 18px;
  flex-direction: column;
}
.modal-footer .btn {
  width: 100%;
}

/* Form */
.form-control {
  padding: 10px 12px;
  font-size: 13px;
}
label {
  font-size: 12px;
}

/* Table badges */
.table-badge {
  padding: 4px 8px;
  font-size: 10px;
}

/* Extra small devices */
@media (max-width: 400px) {
  .header {
    padding: 0 8px;
  }
  .page-content {
    padding: 10px;
  }
  .stat-info h4 {
    font-size: 20px;
  }
  .stat-info p {
    font-size: 12px;
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-overlay.active {
  display: block;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Form Sections - Premium */
.form-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.form-section:last-of-type {
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section-header {
  display: flex;
  /* align-items: center; */
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.form-section-header i {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(252, 28, 3, 0.3);
}

.form-section-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

/* Form helper text */
.text-muted {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
}

/* Form grid improvements */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-grid .form-group.full-width {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .form-group.full-width {
    grid-column: span 1;
  }
}

/* Premium form section icons */
.form-section-header .fa-check-circle {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

.form-section-header .fa-times-circle {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.form-section-header .fa-list-ol {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

/* Tags Input - Premium Design */
.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
  min-height: 54px;
  transition: var(--transition);
  align-items: center;
}

.tags-input:focus-within {
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 4px rgba(252, 28, 3, 0.1),
    0 4px 15px rgba(252, 28, 3, 0.08);
  background: #fff;
}

.tags-input input {
  flex: 1;
  min-width: 180px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: "Inter Tight", sans-serif;
  color: #374151;
}

.tags-input input::placeholder {
  color: #9ca3af;
}

.tags-input input:focus {
  box-shadow: none;
}

/* Premium Tag Style */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
  color: #fff;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(252, 28, 3, 0.25);
  animation: tagPop 0.3s ease;
}

@keyframes tagPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.tag i {
  cursor: pointer;
  font-size: 11px;
  opacity: 0.8;
  transition: var(--transition);
}

.tag i:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* Exclusion Tag */
.tag.exclusion {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

/* Itinerary Items - Premium Design */
.itinerary-item {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.itinerary-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color) 0%, #ff6b6b 100%);
  opacity: 0;
  transition: var(--transition);
}

.itinerary-item:hover {
  border-color: var(--primary-color);
  box-shadow:
    0 8px 25px rgba(252, 28, 3, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.itinerary-item:hover::before {
  opacity: 1;
}

.itinerary-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #e5e7eb;
}

.itinerary-day h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 8px 16px;
  border-radius: 8px;
}

.itinerary-day h4 i {
  font-size: 16px;
}

.itinerary-remove {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.itinerary-remove:hover {
  background: var(--danger);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Add Day Button */
.btn-add-day {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  margin-top: 15px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-day:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(252, 28, 3, 0.15);
}

/* Form Card */
.form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.form-card h3 {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 20px;
  font-weight: 600;
}
