/* Admin Dashboard Specific Styles */

/* Hero background for admin dashboard */
.admin-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

/* Admin Navigation Styling */
#adminTab {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

#adminTab .nav-link {
  font-size: 13px;
  font-weight: 500;
  color: #0D2C5A !important;
  border-radius: 999px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  background-color: transparent;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

#adminTab .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.35);
  color: #0B214A !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#adminTab .nav-link.active {
  background-color: #0D56C4;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.admin-dashboard-title {
  color: #000;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

body.admin-page {
  background-image: url('/images/AdminDashboardBackgrounimage.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Glass effect for the admin header */
.admin-header-glass {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 25px;
  max-width: 900px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Tab content styling */
.tab-content {
  background-color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  color: #000;
}

/* Section headers */
.tab-pane h4 {
  font-weight: 600;
  color: #0056b3;
  font-size: 16px;
  margin-bottom: 15px;
}

/* Text styling */
.tab-pane p {
  color: #555;
  font-size: 14px;
}

/* Card styling for dashboard elements */
.dashboard-card {
  background-color: rgba(248, 249, 250, 0.6);
  border: 1px solid rgba(233, 236, 239, 0.5);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Button styling */
.btn-admin {
  background-color: #0056b3;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  color: white !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-admin:hover {
  background-color: #003d80;
  color: rgba(255, 255, 255, 0.92) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-admin:focus,
.btn-admin:active,
.btn-admin:focus-visible {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Form controls */
.admin-form-control {
  background-color: rgba(208, 235, 255, 0.7);
  border: none;
  border-radius: 8px;
  height: 40px;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
}

/* Table styling */
.admin-table {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table thead th {
  background-color: rgba(0, 86, 179, 0.1);
  color: #0056b3;
  font-weight: 600;
  font-size: 14px;
  border-bottom: none;
}

.admin-table tbody td {
  font-size: 13px;
  color: #333;
  vertical-align: middle;
}

/* Status badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-active {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.status-inactive {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.status-pending {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

#tenantTab {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.tenant-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: #0D2C5A !important;
  border-radius: 999px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  background-color: transparent;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.tenant-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.35);
  color: #0B214A !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tenant-nav-link.active {
  background-color: #0D56C4;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

@media (max-width: 576px) {
  /* Tenant & Admin tabs: stack as full-width buttons */
  #tenantTab,
  #adminTab {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  #tenantTab .nav-item,
  #adminTab .nav-item {
    flex: 1 0 auto;
  }

  #tenantTab .nav-link,
  #adminTab .nav-link {
    display: block;
    width: 100%;
    text-align: center;
  }
}
