:root {
  --nidah-primary: #008000;
  --nidah-secondary: #228B22;
  --nidah-accent: #32CD32;
  --nidah-light: #f8f9fa;
  --nidah-grey-light: #EAEAEA;
  --nidah-dark: #5B5B5B;
  --sidebar-width: 260px;
  --nidah-black: #000000;
}
body {
  background-image: url("{{asset('assets/defaults/bg-001.jpeg') }}");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  font-family: Candara;
}
.text-sty-success{
    color: var(--nidah-secondary);
}

.bg-sty-success {
    background-color: var(--nidah-secondary);
}

.btn-sty-success {
    background-color: var(--nidah-secondary);
    color: var(--nidah-light);
    
}

.form-check-input:checked {
    background-color: #198754; /* green when active */
    border-color: #198754;
}
.link a:active {
  color: var(--nidah-primary) !important;
  background: red;
}
.link a:hover {
  color: var(--nidah-accent) !important;
  background: red;
}
/*
.navbar-brand, .nav-link.active, .btn-primary {
  color: var(--nidah-light) !important;
}
*/
.btn-primary {
  background-color: var(--nidah-primary) !important;
  border-color: var(--nidah-primary) !important;
}
.btn-primary:hover {
  background-color: var(--nidah-secondary) !important;
  border-color: var(--nidah-secondary) !important;
}
.text-nidah {
  color: var(--nidah-primary) !important;
}
.hero-overlay {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
  max-width: 1200px;
  margin: 3rem auto 4rem;
}
.header-banner {
  background: var(--nidah-grey-light);
  color: var(--nidah-primary);
  padding: 0.8rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}
.main-title {
  color: var(--nidah-primary);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.subtitle {
  color: var(--nidah-secondary);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 1.8rem;
}
.access-card {
  background: var(--nidah-light);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  text-align: center;
}
.btn-nidah-primary {
  background: var(--nidah-primary);
  color: var(--nidah-light);
  font-weight: 400;
  padding: 1rem 1.8rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  width: 100%;
  margin: 0.7rem 0;
  font-size: 1.1rem;
}
.btn-nidah-primary:hover {
  background: var(--nidah-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 60, 93, 0.3);
  color: var(--nidah-light);
}
.btn-nidah-outline {
  border: 2px solid var(--nidah-primary);
  color: var(--nidah-primary);
  font-weight: 400;
  padding: 0.95rem 1.8rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  width: 100%;
  margin: 0.5rem 0;
}
.btn-nidah-outline:hover {
  background: var(--nidah-primary);
  color: var(--nidah-light);
}
.register-container {
  max-width: 1100px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}
.sidebar-role {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
}
.role-option {
  display: block;
  padding: 0.9rem 1.2rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.role-option.active {
  background: #008000;
  color: var(--nidah-light);
  font-weight: 600;
}
.role-option:hover:not(.active) {
  background: var(--nidah-light);
}
.form-section {
  padding-left: 2rem;
}
.btn-register {
  background: var(--nidah-primary);
  color: var(--nidah-light);
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
}
.btn-register:hover {
  background: var(--nidah-secondary);
  color: var(--nidah-light);
}
footer {
  background: var(--nidah-primary);
  color: var(--nidah-light);
}
.footer-bar {
  background: rgba(var(--nidah-primary), 0.94);
  color: var(--nidah-light);
  text-align: center;
  padding: 1.4rem;
  font-size: 0.98rem;
  border-radius: 16px 16px 0 0;
  margin-top: 5rem;
}
@media (max-width: 992px) {
  .hero-overlay {
    padding: 2.5rem 1.8rem;
    margin: 2rem;
  }
  .main-title {
    font-size: 2.4rem;
  }
}
/*Login*/
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Candara', Tahoma, Geneva, Verdana, sans-serif;
}
.login-container {
  max-width: 420px;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}
.login-header {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--nidah-primary);
  text-align: center;
  margin-bottom: 1.8rem;
}
.form-label {
  font-weight: 400;
  color: var(--nidah-dark);
}
.btn-nidah {
  background-color: var(--nidah-primary);
  color: var(--nidah-light);
  border: none;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s;
  width: 100%;
}
.btn-nidah:hover {
  background-color: var(--nidah-secondary);
  transform: translateY(-2px);
  color: var(--nidah-light);
}
.link-text {
  color: var(--nidah-primary);
  text-decoration: none;
  font-weight: 500;
}
.link-text:hover {
  text-decoration: underline;
  color: var(--nidah-secondary);
}
.form-check-label {
  color: var(--nidah-dark);
}
.invalid-feedback {
  font-size: 0.875rem;
}
/*   forgetPassword */
.forgot-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.forgot-container {
  max-width: 420px;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}
.header-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--nidah-primary);
  text-align: center;
  margin-bottom: 1.5rem;
}
.alert-success, .alert-danger {
  font-size: 0.95rem;
}
/*----- Layout/Admin ----*/
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  background-color: var(--nidah-light);
  transition: width .3s ease;
}
.sidebar.collapsed {
  width: 70px;
}
.sidebar .nav-link {
  color: var(--nidah-black);
}
.sidebar .nav-link.active {
  color: var(--nidah-primary);
  /*background-color: rgba(11, 60, 93, 0.9);*/
}
.sidebar .nav-link i {
  width: 24px;
  text-align: center;
    color: var(--nidah-black);
}
.main-content {
  margin-left: var(--sidebar-width);
  transition: margin-left .3s ease;
  padding-top: 56px;
}
.sidebar.collapsed ~ .main-content {
  margin-left: 70px;
}
.navbar-brand {
  font-weight: 700;
  color: var(--nidah-primary) !important;
}
@media (max-width: 767.98px) {
  .sidebar {
    width: 70px;
  }
  .main-content {
    margin-left: 70px;
  }
}

/*---Facility Styles ---*/
        .fac-sidebar {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: var(--sidebar-width);
            background-color: var(--nidah-primary);
            color: white;
            padding-top: 1rem;
            overflow-y: auto;
            transition: width 0.3s ease;
            z-index: 1000;
        }

        .fac-sidebar-header {
            padding: 1.5rem 1rem;
            text-align: center;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .fac-sidebar-header h4 {
            margin: 0;
            font-size: 0.95rem;
        }

        .fac-sidebar-menu {
            list-style: none;
            padding: 0;
            margin: 1.5rem 0 0;
            text-decoration: none;
        }

        .fac-sidebar-menu li a {
            display: flex;
            align-items: center;
            padding: 0.9rem 1.5rem;
            color: rgba(255,255,255,0.9);
            text-decoration: none;
            transition: all 0.2s;
        }

        .fac-sidebar-menu li a:hover,
        .fac-sidebar-menu li a.active {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

        .fac-sidebar-menu li a i {
            margin-right: 12px;
            width: 20px;
            text-align: center;
        }

        .main-content {
            margin-left: var(--sidebar-width);
            min-height: 100vh;
            padding: 2rem;
            transition: margin-left 0.3s ease;
        }

        @media (max-width: 992px) {
            .sidebar {
                width: 0;
                overflow: hidden;
            }
            .main-content {
                margin-left: 0;
            }
            .sidebar.active {
                width: var(--fac-sidebar-width);
            }
            .main-content.shifted {
                margin-left: var(--fac-sidebar-width);
            }
        }

        footer {
            color: var(--nidah-light);
            padding: 1.5rem 0;
            margin-top: 2rem;
            text-align: center;
        }
.fac-footer{
    color: var(--nidah-primary);
}
.fac-footer{
    background: var(--nidah-light);
}
.fac-footer small a{
    color: var(--nidah-primary);
}

.card-title, .text-muted{
    font-size: 0.95em
}

