/* ==== Account Page Styles ==== */
/* Sidebar Navigation */
.account-sidebar {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.account-sidebar .list-group-item {
  border: none;
  padding: 0.85rem 1.25rem;
  border-left: 4px solid transparent;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  margin-bottom: 5px;
}

.account-sidebar .list-group-item:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.account-sidebar .list-group-item.active {
  background-color: rgba(74, 124, 89, 0.1);
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  background-color: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
}

.account-sidebar .list-group-item:hover:not(.active) {
  background-color: #f8f9fa;
  border-left: 4px solid #e9ecef;
}

.account-sidebar .list-group-item:not(.active):hover {
  background-color: #f8f9fa;
}

/* Logout button */
.account-sidebar .logout-btn {
  color: #a71d2a !important;
  font-weight: 500;
}

.account-sidebar .logout-btn:hover {
  background-color: #f8d7da !important;
  color: #721c24 !important;
}

/* Tab Content Area */
.tab-content.card {
  border-radius: 12px;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.06);
  border: none;
}

/* Profile Stats Cards */
.profile-stat {
  background: linear-gradient(to bottom right, rgba(74, 124, 89, 0.1), rgba(227, 239, 232, 0.4));
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.profile-stat i {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  font-size: 2rem;
  margin-bottom: 10px;
}

.profile-stat h5 {
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 5px;
}

.profile-stat p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0;
}

/* Pet Cards */
.pet-card {
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
}

.pet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pet-card .pet-image {
  height: 180px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pet-card .pet-image i {
  font-size: 4rem;
  color: rgba(74, 124, 89, 0.4);
}

.pet-card .card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: calc(0.5rem - 1px);
  border-top-right-radius: calc(0.5rem - 1px);
}

.pet-card .card-body {
  padding: 1rem;
}

.pet-card .card-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.pet-card .card-text {
  font-size: 0.9rem;
  color: #555;
}

.pet-card .badge {
  font-size: 0.75rem;
}

#pets-table-container table th,
#pets-table-container table td {
  vertical-align: middle;
}

/* Order Cards */
.order-card {
  border-radius: 10px;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.order-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.order-card .order-header {
  padding: 1rem 1.25rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1.25rem;
  border-top-left-radius: calc(0.5rem - 1px);
  border-top-right-radius: calc(0.5rem - 1px);
}

.order-card .order-body {
  padding: 1.25rem;
}

.order-card .order-footer {
  background-color: #f8f9fa;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1.25rem;
  border-bottom-left-radius: calc(0.5rem - 1px);
  border-bottom-right-radius: calc(0.5rem - 1px);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-state i {
  font-size: 4rem;
  color: rgba(74, 124, 89, 0.3);
  margin-bottom: 1.5rem;
}

.empty-state h4 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.empty-state p {
  color: #6c757d;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

/* Button styling for account page */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn i {
  margin-right: 0.3rem;
}

.btn-group .btn {
  padding: 0.4rem 0.8rem;
}

.account-sidebar .list-group-item {
  padding: 1rem 1.25rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.account-sidebar .list-group-item i {
  width: 20px;
  text-align: center;
  margin-right: 0.75rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#pet-management .btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.order-footer .btn {
  white-space: nowrap;
}

/* Booking History Styling */
#booking-history-container .list-group-item {
  border-radius: 0.375rem;
}

#booking-history-container .list-group-item h5 {
  color: var(--bs-primary);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .account-sidebar {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .form-actions,
  .card-actions {
    flex-direction: column;
    width: 100%;
  }

  .form-actions .btn,
  .card-actions .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .account-sidebar .list-group-item {
    padding: 1.2rem 1rem;
  }
}

/* Consistent button colors */
.btn-outline-primary,
.btn-outline-secondary {
  background-color: white;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  color: white;
}
