/* ✅ PCES Dashboard Login Responsive Styles */

.pces-login-wrapper {
  display: flex;
  flex-direction: row;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 880px;
  overflow: hidden;
}

.pces-login-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef6f8;
  padding: 40px;
}

.pces-login-right {
  flex: 1.2;
  padding: 40px;
}

/* ✅ Responsive (mobile) */
@media (max-width: 768px) {
  .pces-login-wrapper {
    flex-direction: column !important;
  }

  .pces-login-left,
  .pces-login-right {
    flex: 1 !important;
    padding: 30px !important;
  }

  .pces-login-left {
    justify-content: center !important;
  }

  .pces-login-right {
    border-left: none !important;
  }
}



/* === Full-Width Dashboard Layout === */
.pces-dashboard-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #f4f6f8;
}

/* === Sidebar === */
.pces-sidebar {
  width: 240px;
  background: #076280;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
}

.pces-sidebar-header h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 40px;
}

.pces-sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pces-sidebar-nav li {
  margin-bottom: 20px;
}

.pces-sidebar-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.pces-sidebar-nav a.active,
.pces-sidebar-nav a:hover {
  background: #054b5c;
}

.pces-sidebar-footer {
  margin-top: auto;
}

.pces-sidebar-footer button {
  width: 100%;
  padding: 10px;
  border: none;
  background: #ff5f5f;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.tab-header button {
  padding: 10px 20px;
  background: #eee;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.tab-header button.active {
  background: #076280;
  color: white;
}

/* === Full-width Main Content === */
.pces-dashboard-main {
  flex: 1;
  padding: 60px;
  overflow-y: auto;
}

.pces-dashboard-main h1 {
  font-size: 28px;
  font-weight: 600;
  color: #333;
}

.pces-dashboard-main .subheading {
  font-size: 16px;
  color: #666;
}

.dashboard-placeholder {
  padding: 40px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  color: #999;
}

.gauge-grid {
  display: flex;
  flex-wrap: wrap;
    justify-content: center; /* ✅ Center the whole grid */
  gap: 10px;
}

.gauge-box {
  flex: 1;
  min-width: 280px;
  max-width: calc(33.333% - 16px); /* 3 per row with gap */
  background: #fff;
  border-radius: 12px;
  padding: 20px 15px 25px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.gauge-box:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.gauge-header {
  font-weight: 600;
  font-size: 16px;
}

.membership-logo {
  text-align: center;
  margin-bottom: 20px;
}

.membership-logo img {
  max-width: 250px;
  height: 100px;
}

/* ✅ Responsive Enhancements */
@media (max-width: 1024px) {
  .pces-dashboard-main {
    padding: 30px;
  }

  .gauge-box {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .gauge-grid {
    flex-direction: column;
    gap: 20px;
  }

  .pces-sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .pces-sidebar-header h2 {
    font-size: 18px;
    margin-bottom: 0;
  }

  .pces-sidebar-nav {
    display: flex;
    gap: 10px;
  }

  .pces-sidebar-nav li {
    margin-bottom: 0;
  }

  .pces-sidebar-footer {
    display: none;
  }
}

@media (max-width: 768px) {
  .pces-login-wrapper {
    flex-direction: column !important;
    border-radius: 12px;
    box-shadow: none;
    max-width: 100%;
    padding: 10px;
  }

  .pces-login-left,
  .pces-login-right {
    flex: 1 !important;
    padding: 20px !important;
  }

  .pces-login-right h2 {
    font-size: 22px;
  }

  .pces-dashboard-container {
    flex-direction: column;
    height: auto;
  }

  .pces-dashboard-main {
    padding: 20px;
  }

  .gauge-box {
    padding: 15px 10px;
  }

  .gauge-header {
    font-size: 14px;
  }

  .membership-logo {
    margin-bottom: 10px;
  }

  .membership-logo img {
    max-width: 220px;
  }
}

.spinner-container {
  display: flex;
  justify-content: center; /* Centers the spinner horizontally */
  align-items: center;     /* Centers the spinner vertically */
  height: 150px;           /* Adjust the height as needed */
  width: 100%;             /* Ensures the spinner takes up the full width */
  position: relative;
}

/* HTML: <div class="loader"></div> */
.spinner {
  width:28px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #F10C49;
  animation: l9 2s infinite;
}
@keyframes l9 {
  0%   {box-shadow: 
          0 -16px #F4DD51, calc(16px*0.707) calc(-16px*0.707) #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6,
          0 0 #F4DD51, 0 0 #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6}
  12.5%   {box-shadow: 
          0 0 #F4DD51, calc(16px*0.707) calc(-16px*0.707) #E3AAD6,16px 0 #F4DD51, 0 0 #E3AAD6,
          0 0 #F4DD51, 0 0 #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6}
  25%   {box-shadow: 
          0 0 #F4DD51, 0 0 #E3AAD6,16px 0 #F4DD51, calc(16px*0.707) calc(16px*0.707) #E3AAD6,
          0 0 #F4DD51, 0 0 #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6}
  37.5% {box-shadow: 
          0 0 #F4DD51, 0 0 #E3AAD6,0 0 #F4DD51, calc(16px*0.707) calc(16px*0.707) #E3AAD6,
          0 16px #F4DD51, 0 0 #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6}
  50%   {box-shadow: 
          0 0 #F4DD51, 0 0 #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6,
          0 16px #F4DD51, calc(-16px*0.707) calc(16px*0.707) #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6}
  62.5% {box-shadow: 
          0 0 #F4DD51, 0 0 #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6,
          0 0 #F4DD51, calc(-16px*0.707) calc(16px*0.707) #E3AAD6,-16px 0 #F4DD51, 0 0 #E3AAD6}
  75%   {box-shadow: 
          0 0 #F4DD51, 0 0 #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6,
          0 0 #F4DD51, 0 0 #E3AAD6,-16px 0 #F4DD51, calc(-16px*0.707) calc(-16px*0.707) #E3AAD6}
  87.5% {box-shadow: 
          0 -16px #F4DD51, 0 0 #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6,
          0 0 #F4DD51, 0 0 #E3AAD6,0 0 #F4DD51, calc(-16px*0.707) calc(-16px*0.707) #E3AAD6}
  100% {box-shadow: 
          0 -16px #F4DD51, calc(16px*0.707) calc(-16px*0.707) #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6,
          0 0 #F4DD51, 0 0 #E3AAD6,0 0 #F4DD51, 0 0 #E3AAD6}
}
   


