/* --- Custom Scrollbar styling --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #121212;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #4CC9FE;
  border-radius: 10px;
  border: 2px solid #121212;
}

::-webkit-scrollbar-thumb:hover {
  background: #38B0E6;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #4CC9FE #121212;
}

/* --- Base Overrides --- */
body {
  background: var(--bg-gradient) !important;
  margin: 0;
  overflow-x: hidden;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #fff !important;
  font-weight: 700 !important;
}

/* --- Premium Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--sidebar-bg);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px 16px;
}

.sidebar .logo {
  color: #4CC9FE;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 40px;
  padding: 8px 12px;
  /* background: var(--primary-color); */
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(76, 201, 254, 0.3);
}

.sidebar .nav-link {
  color: #fff !important;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sidebar .nav-link i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-color) !important;
  transform: translateX(4px);
}

.sidebar .nav-link.active {
  background: transparent !important;
  color: #4CC9FE !important;
  box-shadow: none !important;
  font-weight: 700;
}

.sidebar .nav-link.active i {
  transform: scale(1.1);
}

/* --- Layout & Wrapper --- */
.page-wapper {
  padding-left: 280px;
  width: 100%;
  min-height: 100vh;
  transition: all 0.4s ease;
}

@media (max-width: 768px) {
  .sidebar {
    width: 0;
    padding: 0;
    overflow: hidden;
    left: -280px;
  }

  .sidebar.open {
    width: 280px;
    padding: 24px 16px;
    left: 0;
  }

  .page-wapper {
    padding-left: 0;
  }
}

/* --- Cards & Surfaces --- */
.card-custom,
.header-container,
.church-card,
.table-responsive,
.table-scroll-wrapper {
  background: var(--surface-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 12px;
}

/* --- Custom Headings & Crumbs --- */
.top-container {
  background: transparent !important;
  padding: 10px 0;
  margin-bottom: 30px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- Component Overrides --- */
.ngx-pagination .current {
  background: var(--primary-color) !important;
  border-radius: 6px;
}

.spinner {
  border-top-color: var(--primary-color) !important;
}

.header-container {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.breadcrumb .divider {
  margin: 0 6px;
  color: var(--text-muted);
}

.breadcrumb .active {
  color: var(--text-primary);
}

/* Filters row */
.filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Field container */
.field {
  position: relative;
}

.field input,
.field select {
  padding: 8px 10px 8px 32px;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  height: 38px;
  font-size: 14px;
  outline: none;
  width: 160px;
  background: var(--input-bg);
  color: var(--text-primary);
}

.field input:focus,
.field select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 3px rgba(59, 130, 246, 0.4);
}

/* Field Icon */
.field .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

/* Buttons */
.btn {
  height: 35px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

/* Button Colors */
.btn-primary {
  background: var(--primary-color);
  color: #000;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-light {
  background: #f1f1f1;
  color: #444;
}

.btn-warning {
  background: #ffbe76;
  color: #fff;
}

.btn-success {
  background: #6ab04c;
  color: #fff;
}

/* Compact Just Icon Buttons */
.btn-warning,
.btn-success {
  padding: 0 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .field input,
  .field select {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/*steps Css*/
/* Card */
.church-card {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  /*display: table-row-group;*/
}

/* Stepper */
.steps-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  transition: 0.3s;
}

.step.active {
  background: #334155;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgb(106 57 108 / 63%);
}

.line {
  width: 50px;
  height: 3px;
  background: #ccc;
  transition: 0.3s;
}

.line.active {
  background: #334155;
}

/* Floating Input */
.floating-box-filter label,
.floating-box label {
  position: absolute;
  top: -10px;
  left: 15px;
  background: #0c0c0c !important;
  /* Force match deep dark */
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4CC9FE !important;
  /* Brand Blue for labels */
  transition: 0.2s;
  border-radius: 4px;
  z-index: 5;
}

.floating-box input,
.floating-box-filter input,
.floating-box select,
.floating-box-filter select {
  background: #121212 !important;
  color: #ffffff !important;
  border: 1px solid rgba(76, 201, 254, 0.2) !important;
  border-radius: 8px !important;
}

.floating-box input:focus,
.floating-box-filter input:focus {
  border-color: #4CC9FE !important;
  box-shadow: 0 0 8px rgba(76, 201, 254, 0.2) !important;
  outline: none;
}

/* Image preview */
.image-preview img {
  width: 110px;
  border-radius: 10px;
  margin-top: 10px;
  border: 2px solid #eee;
}

/* Buttons */
.wizard-buttons {
  margin-top: 25px;
  text-align: right;
}

.next-btn,
.submit-btn {
  padding: 10px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
}

.submit-btn {
  background: #28a745 !important;
  border-color: #28a745 !important;
}



.errorMsg {
  padding-top: 3px;
  color: red;
  font-style: italic;
  font-size: 12px;
}

.tick-icon::before {
  content: '✔';
  /* tick */
  color: #0c6d0c;
  /* green */
  font-weight: bold;
}

.cross-icon::before {
  content: '✖';
  /* cross */
  color: #ff7979;
  /* red */
  font-weight: bold;
}

.social-card {
  background: linear-gradient(to bottom, #ffffff, #f2f2f2);
  padding: 30px;
  text-align: center;
  border-radius: 6px;
}

.no-links {
  color: #888;
  margin-bottom: 8px;
}

.add-link {
  color: #3b6ef5;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}

.add-link:hover {
  text-decoration: underline;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.modal-content {

  width: 650px;
  margin: 80px auto;
  border-radius: 10px;
  padding: 0px;
  background-color: #141414;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141414;
  padding: 15px 20px;
  color: #fff;
}

.close {
  font-size: 22px;
    cursor: pointer!important;
    color: #fff;
    background: #141414;
    border: 1px solid #fff;
}

.form-group {
  margin-top: 12px;
}

.form-group label {
  font-size: 13px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border: 1px solid var(--border-glass);
  background: var(--input-bg);
  color: var(--text-primary);
  border-radius: 4px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  padding: 8px 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: #4CC9FE;
  color: #000;
}

.btn.cancel {
  background: var(--text-muted);
  color: #fff;
}

.btn.save {
  background: var(--primary-color);
  color: #fff;
}

.table_img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

table {
  width: 100%;
  background: transparent !important;
}

table thead th {
  font-size: 13px !important;
  white-space: nowrap !important;
  background: #1a1a1a !important;
  color: #4CC9FE !important;
  border-bottom: 2px solid #4CC9FE !important;
  padding: 14px 15px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table td,
table td a {
  font-size: 14px !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(76, 201, 254, 0.1) !important;
  padding: 12px 15px !important;
  background: transparent !important;
}

.textDark {
  font-weight: 600;
}

.ngx-pagination .current {
  background: #4CC9FE !important;
  color: #000 !important;
  font-weight: 700;
  border-radius: 4px;
}

.ngx-pagination li {
  color: #fff !important;
}

.linkss1 {
  color: #555;
  text-decoration: none;
  font-weight: bold;
}

.active_status {
  color: green;
  font-weight: bold;
}

.inactive_status {
  color: red;
  font-weight: bold;
}

.table-responsive {
  padding: 15px 15px;
}

.sort-th {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 👈 icon right side */
  white-space: nowrap;
}

.sort-icon {
  width: 12px;
  height: 12px;
  cursor: pointer;
}

th.sort {
  position: relative;
  padding-right: 20px;
}

th.sort svg {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}


.table-scroll-wrapper {
  border-radius: 10px;
  padding: 16px 10px
}

input[type="radio"] {
  accent-color: #68416a;
}

.text-dark {
  color: #555 !important;
}

#loader {
  position: fixed;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0 */
  background: rgb(255 255 255 / 67%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 400ms ease, visibility 400ms ease;
  visibility: visible;
  opacity: 1;
}

/* Hidden state after page loads */
#loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Spinner */
.spinner {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 8px solid rgba(0, 0, 0, 0.08);
  border-top-color: #5e2b60;
  /* blue top */
  animation: spin 1s linear infinite;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}