/* Visakha Tourism Admin Dashboard Styles */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f1f5f9;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 260px;
  background-color: #0f172a;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition);
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.admin-sidebar-badge {
  background-color: #0284c7;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.admin-nav {
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.admin-nav-item:hover {
  background-color: #1e293b;
  color: #ffffff;
}

.admin-nav-item.active {
  background-color: #0284c7;
  color: #ffffff;
}

.admin-sidebar-footer {
  padding: 20px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Admin Main Content Area */
.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background-color: #ffffff;
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.admin-breadcrumb {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0d9488);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-content {
  padding: 32px;
  flex: 1;
}

/* Dashboard Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon-blue { background-color: #e0f2fe; color: #0284c7; }
.stat-icon-green { background-color: #dcfce7; color: #16a34a; }
.stat-icon-amber { background-color: #fef3c7; color: #d97706; }
.stat-icon-purple { background-color: #f3e8ff; color: #9333ea; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Data Table Container */
.data-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 32px;
}

.data-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.data-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.admin-table th {
  background-color: #f8fafc;
  padding: 14px 20px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: #f8fafc;
}

.table-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-published {
  background-color: #dcfce7;
  color: #15803d;
}

.status-unpublished {
  background-color: #fee2e2;
  color: #b91c1c;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Category Metric Bars */
.category-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.cat-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

.cat-bar-track {
  height: 8px;
  background-color: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #0d9488);
  border-radius: var(--radius-full);
}

/* Photo Upload Manager */
.upload-dropzone {
  border: 2px dashed #0284c7;
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  background-color: #f0f9ff;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 24px;
}

.upload-dropzone:hover {
  background-color: #e0f2fe;
}

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

.photo-manager-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.photo-manager-thumb {
  height: 130px;
  width: 100%;
  object-fit: cover;
}

.photo-manager-actions {
  padding: 8px;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  background: #f8fafc;
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
}
