/* Project: Church Website - Administrative Command
   Theme: GISU Inspired (Purple & Gold)
*/

:root {
  /* Brand Colors */
  --brand-purple: #9d1a66;
  --brand-gold: #ffcc00;
  --light-gray: #f8f9fa;
  --sidebar-width: 280px; /* Consistent with your layout */
  --transition: all 0.3s ease;
}

/* --- Global Reset --- */
body {
  font-family: "Inter", sans-serif;
  background-color: var(--light-gray);
  margin: 0;
  overflow-x: hidden;
}

/* --- SIDEBAR STRUCTURE --- */
.sidebar {
  width: var(--sidebar-width);
  background: #ffffff;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: var(--transition);
}

.sidebar-header {
  padding: 25px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.sidebar-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px 0;
}

/* --- NAVIGATION LINKS --- */
.nav-category {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 25px 25px 10px;
}

.nav-link {
  color: #64748b;
  font-weight: 600;
  padding: 12px 25px;
  display: flex;
  align-items: center;
  text-decoration: none !important;
  transition: var(--transition);
  font-size: 14px;
}

.nav-link i {
  width: 35px;
  font-size: 18px;
}

.nav-link:hover,
.nav-link.active {
  background: #fff1f9; /* Soft purple tint from your UI */
  color: var(--brand-purple);
  border-right: 5px solid var(--brand-purple);
}

/* --- LAYOUT WRAPPERS --- */
.top-header {
  margin-left: 0;
  width: 100%;
  z-index: 1001; /* Make sure this is higher than the sidebar's z-index */
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 40px;
  transition: var(--transition);
}

/* --- UI COMPONENTS --- */
.glass-card {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
}

/* --- SYSTEM STATUS PULSE --- */
.pulse-red {
  width: 10px;
  height: 10px;
  background: #ff4d4d;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(157, 26, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(157, 26, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(157, 26, 102, 0);
  }
}

/* --- RESPONSIVE BEHAVIOR --- */
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .top-header,
  .main-content {
    margin-left: 0 !important;
    padding: 20px !important;
  }
}

/* float button for download report on home  */
/* Floating Right-Centered Button */
.fab-reports-right {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #9d1a66; /* Brand Magenta */
  color: white;
  padding: 12px 15px;
  border-radius: 10px 0 0 10px; /* Smaller curved left edge */
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1050;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.fab-reports-right:hover {
  padding-right: 10px;
  background-color: #76124c;
  color: white;
}

.fab-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Public Month Chip */
.public-month-chip {
  background-color: #fce4ec;
  color: #9d1a66;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Ensure Nav alignment */
.nav-item .nav-link {
  transition: 0.3s ease;
}
