/* Modern Admin Dashboard Styles */

/* Ensure icon font is loaded */
@import url('/font/icons/icomoon/style.css');

/* Custom CSS Variables */
:root {
  --sidebar-width: 280px;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;
  --primary-color: #0099cc;
  --secondary-color: #cc99ff;
  --text-primary: #1a202c;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --hover-bg: #f8fafc;
}

/* Dashboard Layout */
.admin-dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
}

/* Sidebar Styles */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--text-primary);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05);
  border-right: 1px solid var(--sidebar-border);
}

.admin-sidebar.collapsed {
  transform: translateX(-100%);
}

/* Sidebar Header */
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  flex: 1;
}

.logo-link {
  text-decoration: none;
  display: block;
  transition: var(--transition);
}

.logo-image {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.logo-link:hover .logo-image {
  transform: scale(1.05);
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background-color: var(--hover-bg);
  color: var(--primary-color);
}

/* User Info */
.sidebar-user {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--sidebar-border);
  transition: var(--transition);
}

.sidebar-user:hover {
  background-color: var(--hover-bg);
}

.user-avatar {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border: 2px solid var(--sidebar-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.sidebar-user:hover .user-avatar {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: transparent;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.user-role {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: capitalize;
  background-color: #f1f5f9;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  transition: var(--transition);
}

.sidebar-user:hover .user-role {
  background-color: rgba(0, 153, 204, 0.1);
  color: var(--primary-color);
}

/* Navigation */
.sidebar-nav {
  padding: 24px 0;
  flex: 1;
}

/* Navigation section title */
.nav-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 32px 8px 32px;
  margin-bottom: 8px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 2px;
  padding: 0 16px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 14px 20px !important;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 10px;
  position: relative;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--hover-bg);
  border-color: rgba(0, 153, 204, 0.15);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 153, 204, 0.1);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: rgba(0, 153, 204, 0.08);
  border-color: rgba(0, 153, 204, 0.2);
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 0 3px 3px 0;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

.nav-label {
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  flex: 1;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--sidebar-border);
}

.logout-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--sidebar-border);
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.logout-btn:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
}

/* Main Content */
.admin-main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: var(--transition);
}

/* Content Header */
.content-header {
  background: white;
  padding: 24px 32px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.welcome-text {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Dashboard Content */
.dashboard-content {
  padding: 32px;
  background-color: #f0faff;
}

/* Management Grid */
.management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  margin-top: 32px;
}

.management-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--sidebar-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.management-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(0, 153, 204, 0.2);
}

.management-card:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card-icon {
  width: 56px;
  height: 56px;
  background: #f8fafc;
  border: 1px solid var(--sidebar-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-muted);
  transition: var(--transition);
}

.management-card:hover .card-icon {
  background: rgba(0, 153, 204, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.05);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.card-actions {
  display: flex;
  gap: 12px;
}

/* Quick Actions */
.quick-actions-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--sidebar-border);
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--sidebar-border);
  border-radius: 2px;
  transition: var(--transition);
}

.quick-actions-section:hover .section-title::before {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid var(--sidebar-border);
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
}

.quick-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(0, 153, 204, 0.05);
}

/* Custom button variants - Override default styles */
.btn-outline-purple,
.btn-outline-teal,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-success,
.btn-outline-danger {
  border: 1px solid var(--sidebar-border) !important;
  background: white !important;
  color: var(--text-secondary) !important;
}

.btn-outline-purple:hover,
.btn-outline-teal:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-success:hover {
  background: rgba(0, 153, 204, 0.05) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.btn-outline-danger:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .admin-main-content {
    margin-left: 0;
  }

  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.collapsed {
    transform: translateX(-100%);
  }

  .admin-sidebar:not(.collapsed) {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .content-header {
    padding: 16px 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .dashboard-content {
    padding: 20px;
    background-color: #f0faff;
  }

  .management-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .management-card {
    padding: 20px;
  }

  .quick-actions-section {
    padding: 24px;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }

  .quick-action-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .welcome-text {
    display: none;
  }

  /* Mobile navigation adjustments */
  .nav-item {
    padding: 0 12px;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 14px;
  }

  .nav-link:hover {
    transform: translateX(2px);
  }
}

@media (max-width: 576px) {
  .content-header {
    padding: 12px 16px;
  }

  .dashboard-content {
    padding: 16px;
    background-color: #f0faff;
  }

  .management-card {
    padding: 16px;
  }

  .card-title {
    font-size: 18px;
  }

  .quick-actions-section {
    padding: 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Scrollbar Styling */
.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.management-card {
  animation: fadeInUp 0.6s ease forwards;
}

.management-card:nth-child(1) {
  animation-delay: 0.1s;
}

.management-card:nth-child(2) {
  animation-delay: 0.2s;
}

.management-card:nth-child(3) {
  animation-delay: 0.3s;
}

.management-card:nth-child(4) {
  animation-delay: 0.4s;
}

.management-card:nth-child(5) {
  animation-delay: 0.5s;
}

.management-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Navigation items animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-item {
  animation: slideInLeft 0.4s ease forwards;
}

.nav-item:nth-child(1) {
  animation-delay: 0.1s;
}

.nav-item:nth-child(2) {
  animation-delay: 0.15s;
}

.nav-item:nth-child(3) {
  animation-delay: 0.2s;
}

.nav-item:nth-child(4) {
  animation-delay: 0.25s;
}

.nav-item:nth-child(5) {
  animation-delay: 0.3s;
}

.nav-item:nth-child(6) {
  animation-delay: 0.35s;
}

/* Remove excessive hover effects - keep it subtle */

/* Improved Focus States */
.nav-link:focus,
.quick-action-btn:focus,
.logout-btn:focus,
.sidebar-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Clean scrollbar for sidebar */
.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: var(--sidebar-border);
  border-radius: 2px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Admin page content styling */
.admin-page-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sidebar-border);
}

.admin-page-header h2 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.admin-page-header p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.admin-page-actions {
  display: flex;
  gap: 0.75rem;
}

/* Form styling improvements */
.admin-form-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--sidebar-border);
  margin-bottom: 1.5rem;
}

.admin-form-section h3 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.admin-form-section h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 1px;
}

/* Form elements consistency */
.admin-form-section .form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.admin-form-section .form-control,
.admin-form-section .form-select {
  border: 1px solid var(--sidebar-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.admin-form-section .form-control:focus,
.admin-form-section .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 153, 204, 0.15);
}

.admin-form-section .btn {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.admin-form-section .row.g-3 {
  margin-bottom: 0;
}

/* Ensure consistent spacing */
.admin-form-section .col-md-2 .btn,
.admin-form-section .col-md-3 .btn {
  min-height: 48px;
}

/* Filter section enhancements */
.admin-form-section .row.g-3>* {
  margin-bottom: 0;
}

.admin-form-section .d-flex.align-items-end {
  padding-bottom: 0;
}

/* Consistent button styling across all filter sections */
.admin-form-section .btn-outline-primary {
  border: 1px solid var(--sidebar-border) !important;
  background: white !important;
  color: var(--text-secondary) !important;
  transition: var(--transition);
}

.admin-form-section .btn-outline-primary:hover {
  background: rgba(0, 153, 204, 0.05) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-1px);
}

/* Form field hover effects */
.admin-form-section .form-control:hover,
.admin-form-section .form-select:hover {
  border-color: rgba(0, 153, 204, 0.3);
}

/* Placeholder styling */
.admin-form-section .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

/* Table improvements */
.admin-table-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--sidebar-border);
  overflow: hidden;
}

.admin-table-container .table {
  margin-bottom: 0;
}

.admin-table-container .table th {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--sidebar-border);
  font-weight: 600;
  color: var(--text-primary);
  padding: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table-container .table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.admin-table-container .table tbody tr:hover {
  background-color: var(--hover-bg);
}

.admin-table-container .table tbody tr:last-child td {
  border-bottom: none;
}

/* Table content styling */
.admin-table-container .fw-medium {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.admin-table-container .text-muted {
  color: var(--text-secondary) !important;
  font-size: 0.875rem;
}

/* Badge improvements */
.admin-table-container .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/* Button group improvements */
.admin-table-container .d-flex.gap-1 {
  gap: 0.25rem !important;
}

.admin-table-container .btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 0.375rem;
}

/* Image styling in tables */
.admin-table-container img {
  border: 1px solid var(--sidebar-border);
  transition: var(--transition);
}

.admin-table-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Empty state styling */
.admin-table-container .text-center {
  padding: 3rem 1rem;
}

.admin-table-container .text-center .text-muted {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Responsive table improvements */
@media (max-width: 768px) {

  .admin-table-container .table th,
  .admin-table-container .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  .admin-table-container .table th {
    font-size: 0.8rem;
  }

  .admin-table-container .btn-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }

  .admin-table-container .d-flex.gap-1 {
    flex-direction: column;
    gap: 0.25rem !important;
  }

  .admin-table-container .d-flex.gap-1 .btn {
    width: 100%;
  }
}

/* Stats cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--sidebar-border);
  text-align: center;
  transition: var(--transition);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.admin-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.admin-stat-card .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Alert improvements */
.alert {
  border-radius: var(--border-radius);
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background-color: rgba(34, 197, 94, 0.1);
  color: #166534;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: #1e40af;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #92400e;
}

/* Admin Dashboard Custom Styles */

/* Avatar Styles */
.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
  font-weight: 600;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 2rem;
  font-weight: 600;
}

/* User Management Table Styles */
.table-hover tbody tr:hover {
  background-color: rgba(0, 153, 204, 0.05);
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Card Hover Effects */
.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.15s ease-in-out;
}

/* Button Group Spacing */
.btn-group .btn+.btn {
  margin-left: 0.25rem;
}

/* Form Validation Styles */
.form-control:focus {
  border-color: #0099cc;
  box-shadow: 0 0 0 0.2rem rgba(0, 153, 204, 0.25);
}

.form-select:focus {
  border-color: #0099cc;
  box-shadow: 0 0 0 0.2rem rgba(0, 153, 204, 0.25);
}

/* Alert Styles */
.alert {
  border: none;
  border-radius: 0.5rem;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: #155724;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #721c24;
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  color: #0c5460;
}

/* Pagination Styles */
.pagination .page-link {
  color: #0099cc;
  border-color: #dee2e6;
}

.pagination .page-link:hover {
  color: #007399;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
  background-color: #0099cc;
  border-color: #0099cc;
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Tab Styles */
.nav-tabs .nav-link {
  color: #495057;
  border: 1px solid transparent;
}

.nav-tabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
  color: #0099cc;
}

.nav-tabs .nav-link.active {
  color: #0099cc;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .d-flex.gap-2 {
    flex-direction: column;
  }

  .d-flex.gap-2>* {
    margin-bottom: 0.5rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .card {
    background-color: #2d3748;
    border-color: #4a5568;
  }

  .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
}

/* Policy Pages Styles */
.section-privacy-policy,
.section-terms-conditions,
.section-cookie-policy {
  padding: 80px 0;
}

.privacy-content,
.terms-content,
.cookie-content {
  max-width: 100%;
}

.section-block {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 40px;
}

.section-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.section-block h2 {
  color: #2c3e50;
  font-weight: 600;
}

.section-block h3 {
  color: #34495e;
  font-weight: 500;
}

.section-block ul {
  padding-left: 20px;
}

.section-block ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.last-updated {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #0099cc;
}

.contact-info {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

/* Admin form responsive adjustments */
@media (max-width: 768px) {
  .admin-form-section {
    padding: 1.5rem;
  }

  .admin-form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .admin-form-section .form-control,
  .admin-form-section .form-select {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .admin-form-section .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .admin-form-section .col-md-2 .btn,
  .admin-form-section .col-md-3 .btn {
    min-height: 42px;
  }
}

/* Responsive adjustments for policy pages */
@media (max-width: 768px) {

  .section-privacy-policy,
  .section-terms-conditions,
  .section-cookie-policy {
    padding: 40px 0;
  }

  .section-block {
    margin-bottom: 40px;
  }

  .section-block h2 {
    font-size: 1.5rem;
  }

  .section-block h3 {
    font-size: 1.25rem;
  }
}

/* 
Blog Markdown Content Styles */
.blog-content {
  line-height: 1.7;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-content h1:first-child,
.blog-content h2:first-child,
.blog-content h3:first-child {
  margin-top: 0;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content li p {
  margin-bottom: 0.5rem;
}

.blog-content strong {
  font-weight: 600;
}

.blog-content em {
  font-style: italic;
}

.blog-content a {
  color: #0099cc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.blog-content a:hover {
  border-bottom-color: #0099cc;
}

.blog-content blockquote {
  border-left: 4px solid #0099cc;
  background-color: #f8f9fa;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}

.blog-content code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
}

.blog-content pre {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-content {
    font-size: 0.9rem;
  }

  .blog-content h1,
  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-content h3,
  .blog-content h4 {
    font-size: 1.25rem;
  }
}

/* Rela
ted Posts Section Styles */
.section-related-posts {
  background-color: #f0faff;
  border-top: 1px solid #e9ecef;
  margin-top: 0;
  padding-top: 40px;
  padding-bottom: 40px;
}

.section-related-posts .heading-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
}

.section-related-posts .blog-article-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-related-posts .blog-article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.section-related-posts .blog-article-thumb {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.section-related-posts .blog-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.section-related-posts .blog-article-item:hover .blog-article-thumb img {
  transform: scale(1.05);
}

.section-related-posts .blog-article-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.section-related-posts .blog-article-meta {
  margin-bottom: 12px;
}

.section-related-posts .blog-article-meta .meta-item {
  font-size: 0.875rem;
  color: #6c757d;
  margin-right: 16px;
}

.section-related-posts .blog-article-meta .meta-item:last-child {
  margin-right: 0;
}

.section-related-posts .blog-article-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.section-related-posts .blog-article-title a {
  color: #212529;
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-related-posts .blog-article-title a:hover {
  color: #0099cc;
}

.section-related-posts .blog-article-description {
  font-size: 12px;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 20px;
  flex-grow: 1;
}

.section-related-posts .blog-article-link {
  font-size: 14px;
  font-weight: 500;
  color: #0099cc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
  margin-top: auto;
}

.section-related-posts .blog-article-link:hover {
  color: #007aa3;
}

.section-related-posts .blog-article-link i {
  margin-left: 8px;
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.section-related-posts .blog-article-link:hover i {
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-related-posts .heading-section h2 {
    font-size: 2rem;
  }

  .section-related-posts .blog-article-content {
    padding: 20px;
  }

  .section-related-posts .blog-article-thumb {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .section-related-posts .heading-section h2 {
    font-size: 1.75rem;
  }

  .section-related-posts .blog-article-content {
    padding: 16px;
  }

  .section-related-posts .blog-article-thumb {
    height: 160px;
  }
}

/* AJ
AX Search Dropdown Styles */
.search-container {
  position: relative;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f8f9fa;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: #f0faff;
}

.search-result-item.selected {
  background-color: #e3f2fd;
  border-left: 3px solid #0099cc;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item.loading {
  justify-content: center;
  color: #6c757d;
  cursor: default;
}

.search-result-item.loading:hover {
  background-color: transparent;
}

.search-result-item.no-results {
  justify-content: center;
  color: #6c757d;
  cursor: default;
  font-style: italic;
}

.search-result-item.no-results:hover {
  background-color: transparent;
}

.search-result-image {
  flex-shrink: 0;
  margin-right: 12px;
}

.search-result-image img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.search-result-content {
  flex-grow: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 14px;
  font-weight: 500;
  color: #212529;
  line-height: 1.3;
  margin-bottom: 4px;
}

.search-result-meta {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #6c757d;
  gap: 8px;
}

.search-result-meta .category {
  background-color: #e9ecef;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.search-result-footer {
  padding: 8px 16px;
  border-top: 1px solid #e9ecef;
  background-color: #f0faff;
}

.view-all-results {
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: 1px solid #0099cc;
  border-radius: 4px;
  color: #0099cc;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-all-results:hover {
  background-color: #0099cc;
  color: #ffffff;
}

/* Search input loading state */
.form-search .spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .search-results-dropdown {
    max-height: 300px;
  }

  .search-result-item {
    padding: 10px 12px;
  }

  .search-result-image img {
    width: 35px;
    height: 35px;
  }

  .search-result-title {
    font-size: 12px;
  }

  .search-result-meta {
    font-size: 10px;
  }
}

/* Scrollbar styling for search results */
.search-results-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* B
log Post Tag Links */
.wrap-popular-tag .popular-tag-item.link {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.wrap-popular-tag .popular-tag-item.link:hover {
  text-decoration: none;
  color: var(--Primary-color, #0099cc);
  transform: translateY(-2px);
}

.wrap-popular-tag .popular-tag-item.link:focus {
  outline: 2px solid var(--Primary-color, #0099cc);
  outline-offset: 2px;
}

.wrap-popular-tag .popular-tag-item.link:active {
  transform: translateY(0);
}

/* Ensure proper cursor for tag links */
.wrap-popular-tag .popular-tag-item.link {
  cursor: pointer;
}

/* Enhanced hover effect for tag links */
.wrap-popular-tag .popular-tag-item.link:hover::before {
  border-color: var(--Primary-color, #0099cc);
  opacity: 1;
}

/* B
log Pagination Styles */
.wg-pagination {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  color: #6c757d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
  background-color: #f8f9fa;
  border-color: #0099cc;
  color: #0099cc;
  transform: translateY(-1px);
}

.pagination-btn.active {
  background-color: #0099cc;
  border-color: #0099cc;
  color: #ffffff;
}

.pagination-btn.active:hover {
  background-color: #007aa3;
  border-color: #007aa3;
}

.pagination-btn.disabled {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-btn.disabled:hover {
  transform: none;
  background-color: #f8f9fa;
  border-color: #e9ecef;
  color: #adb5bd;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .wg-pagination {
    gap: 8px !important;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .pagination-ellipsis {
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .wg-pagination {
    gap: 6px !important;
  }

  .pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 4px 8px;
    font-size: 12px;
  }

  .pagination-ellipsis {
    min-width: 32px;
    height: 32px;
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* Portfolio Show More Button Styles */
.tf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tf-btn:disabled:hover {
  transform: none;
}

.tf-btn .spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.1em;
}

/* Portfolio Category Filter Responsive */
@media (max-width: 768px) {
  .tf-project-filter {
    gap: 8px;
  }

  .tf-btns-filter {
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .tf-project-filter {
    gap: 6px;
  }

  .tf-btns-filter {
    padding: 6px 10px;
    font-size: 13px;
  }
}