/* Custom styles for E-Procurement System */

/* Enhanced card styles */
.dashboard-card {
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced button styles */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #10b981, #047857);
  border: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Enhanced form styles */
.form-input {
  transition: all 0.2s ease;
  border-width: 1px;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Enhanced navigation */
.nav-link {
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 50%;
  background-color: #3b82f6;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.active-nav::after {
  width: 100%;
}

/* Enhanced status badges */
.status-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.status-open {
  background-color: #dcfce7;
  color: #166534;
}

.status-closed {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-submitted {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Enhanced table styles */
.table-header {
  background-color: #f9fafb;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table-row:hover {
  background-color: #f9fafb;
}

/* Enhanced chart containers */
.chart-container {
  position: relative;
  max-height: 300px;
  width: 100%;
  height: 100%;
}

/* Enhanced pagination */
.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination-button:hover {
  background-color: #f3f4f6;
}

.pagination-button.active {
  background-color: #3b82f6;
  color: white;
}

/* Enhanced mobile menu */
.mobile-menu-item {
  transition: all 0.2s ease;
}

.mobile-menu-item:hover {
  background-color: #f3f4f6;
}

/* Enhanced stat cards */
.stat-card {
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

/* Enhanced plan cards */
.plan-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.plan-card.selected {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

/* Enhanced activity feed */
.activity-item {
  transition: all 0.2s ease;
}

.activity-item:hover {
  background-color: #f9fafb;
}

.activity-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .dashboard-card {
    margin-bottom: 1rem;
  }

  .stat-card {
    margin-bottom: 1rem;
  }

  .nav-link::after {
    display: none;
  }
}

/* Loading spinner */
.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Notification badge */
.notification-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: #ef4444;
  color: white;
  border-radius: 9999px;
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}