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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: #2d3748;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h2 {
  color: #3182ce;
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #3182ce;
}

.nav-user {
  color: #3182ce;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: #3182ce;
  border: 2px solid #3182ce;
}

.btn-outline:hover {
  background: #3182ce;
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #718096;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats Section */
.stats {
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem 2rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #3182ce;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #718096;
  font-weight: 600;
}

/* Auth Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(31, 38, 135, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  max-width: 450px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.auth-header p {
  color: #718096;
}

.auth-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #718096;
}

.auth-footer {
  text-align: center;
}

.auth-footer p {
  margin-bottom: 1rem;
  color: #718096;
}

.auth-footer a {
  color: #3182ce;
  text-decoration: none;
  font-weight: 600;
}

.back-link {
  color: #718096 !important;
  font-size: 0.9rem;
}

/* Dashboard */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2d3748;
}

.balance-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.5rem;
  border-radius: 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

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

.balance-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.balance-amount {
  font-size: 1.8rem;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2d3748;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-summary {
  background: rgba(102, 126, 234, 0.1);
  padding: 1rem;
  border-radius: 12px;
  margin: 1rem 0;
}

.cost-display {
  font-size: 1.2rem;
  font-weight: 700;
  color: #3182ce;
  text-align: center;
}

.orders-list {
  max-height: 400px;
  overflow-y: auto;
}

.order-item {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.order-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.order-id {
  font-size: 0.9rem;
  color: #718096;
}

.order-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #718096;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending {
  background: #feebc8;
  color: #dd6b20;
}

.status-processing {
  background: #bee3f8;
  color: #3182ce;
}

.status-completed {
  background: #c6f6d5;
  color: #38a169;
}

.no-orders {
  text-align: center;
  color: #718096;
  padding: 2rem;
}

.view-all-link {
  display: block;
  text-align: center;
  color: #3182ce;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  margin: 10% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(31, 38, 135, 0.3);
  backdrop-filter: blur(10px);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
}

.close {
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #718096;
}

.close:hover {
  color: #2d3748;
}

.modal-body {
  padding: 2rem;
}

.contact-info {
  background: rgba(102, 126, 234, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Admin Panel */
.admin-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-icon {
  font-size: 3rem;
  opacity: 0.8;
}

.stat-info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #3182ce;
  margin-bottom: 0.5rem;
}

.stat-info p {
  color: #718096;
  font-weight: 600;
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #718096;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: #3182ce;
  border-bottom-color: #3182ce;
}

.tab-content {
  display: none;
}

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

.admin-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.users-table-content {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.users-table-content th,
.users-table-content td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.users-table-content th {
  background: rgba(102, 126, 234, 0.1);
  font-weight: 700;
  color: #2d3748;
}

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

.service-card {
  background: rgba(102, 126, 234, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.service-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d3748;
}

.service-details p {
  margin-bottom: 0.5rem;
  color: #4a5568;
  font-size: 0.9rem;
}

.orders-table {
  max-height: 500px;
  overflow-y: auto;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.3s ease;
}

.order-row:hover {
  background: rgba(102, 126, 234, 0.05);
}

.order-row .order-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-row .order-details {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  .balance-card {
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links .nav-link {
    display: none;
  }

  .admin-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

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

  .order-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .order-row .order-details {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }

  .dashboard {
    padding: 1rem;
  }

  .admin-dashboard {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-card,
.feature-card,
.stat-card,
.admin-section {
  animation: fadeIn 0.6s ease-out;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Service Management Styles */
.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.service-header h4 {
  flex: 1;
  margin: 0;
}

.btn-delete {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.4);
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.btn-delete:active {
  transform: translateY(0);
}

.service-card {
  position: relative;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

/* Confirmation dialog styling */
.service-delete-confirm {
  background: rgba(245, 101, 101, 0.1);
  border: 1px solid #f56565;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .service-header {
    align-items: center;
    gap: 0.5rem;
  }

  .btn-delete {
    min-width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* Animation for service removal */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

.service-removing {
  animation: fadeOut 0.3s ease-out forwards;
}

/* Bulk Management Styles */
.bulk-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bulk-help {
  color: #718096;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.btn-danger {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.service-checkbox {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
}

.service-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3182ce;
}

.service-checkbox label {
  cursor: pointer;
  margin-left: 0.25rem;
}

.service-card {
  position: relative;
  padding-top: 3rem; /* Make room for checkbox */
}

.service-card.selected {
  border: 2px solid #3182ce;
  box-shadow: 0 8px 32px rgba(49, 130, 206, 0.2);
}

/* Responsive bulk actions */
@media (max-width: 768px) {
  .bulk-actions {
    flex-direction: column;
  }

  .bulk-actions button {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
}

/* Loading state for bulk operations */
.service-card.deleting {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.service-card.deleting::after {
  content: "Deleting...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(245, 101, 101, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 20;
}

/* Fix for admin panel buttons */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Fix section headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
}

/* Fix payment requests styling */
.payment-requests-list {
  max-height: 400px;
  overflow-y: auto;
}

.no-requests {
  text-align: center;
  color: #718096;
  padding: 2rem;
  font-style: italic;
}

/* Fix order status colors */
.status-pending {
  background: #feebc8;
  color: #dd6b20;
}

.status-processing {
  background: #bee3f8;
  color: #3182ce;
}

.status-completed {
  background: #c6f6d5;
  color: #38a169;
}

.status-cancelled {
  background: #fed7d7;
  color: #c53030;
}

.status-partial {
  background: #e6fffa;
  color: #319795;
}

.status-in_progress {
  background: #bee3f8;
  color: #3182ce;
}

/* Fix mobile responsiveness */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .section-header > div {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .admin-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tab-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bulk-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .bulk-actions button {
    width: 100%;
  }
}

/* Fix table responsiveness */
.users-table-content {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.users-table-content thead,
.users-table-content tbody,
.users-table-content tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.users-table-content th,
.users-table-content td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  word-wrap: break-word;
}

.users-table-content th {
  background: rgba(102, 126, 234, 0.1);
  font-weight: 700;
  color: #2d3748;
  position: sticky;
  top: 0;
}

/* Fix loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "Loading...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 10;
}

/* Fix modal z-index issues */
.modal {
  z-index: 9999;
}

.modal-content {
  position: relative;
  z-index: 10000;
}

/* Fix button hover states */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Enhanced service management styles */
.service-card.deleting {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
  transform: scale(0.98);
  transition: all 0.3s ease;
}

.service-card.deleting::after {
  content: "🗑️ Deleting...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(245, 101, 101, 0.95);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.service-removing {
  transition: all 0.4s ease;
  transform: translateX(100%) scale(0.8);
  opacity: 0;
}

/* Better button loading states */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  position: relative;
}

.btn:disabled::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Enhanced service grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  min-height: 200px;
}

.service-card {
  position: relative;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover:not(.deleting) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
}

/* Loading state for services grid */
.services-grid.loading {
  position: relative;
  min-height: 300px;
}

.services-grid.loading::after {
  content: "Loading services...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  font-weight: 600;
  color: #3182ce;
}

/* Better error states */
.error-message {
  background: rgba(245, 101, 101, 0.1);
  border: 1px solid #f56565;
  color: #c53030;
  padding: 1rem;
  border-radius: 12px;
  margin: 1rem 0;
  text-align: center;
  font-weight: 600;
}

.success-message {
  background: rgba(72, 187, 120, 0.1);
  border: 1px solid #48bb78;
  color: #2f855a;
  padding: 1rem;
  border-radius: 12px;
  margin: 1rem 0;
  text-align: center;
  font-weight: 600;
}

/* Enhanced bulk actions */
.bulk-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.bulk-actions .btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

/* Mobile improvements */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1.25rem;
  }

  .bulk-actions {
    flex-direction: column;
    width: 100%;
  }

  .bulk-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
