﻿/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #4f46e5;
  --light-green-bg: #2a62db36;
  --text-dark: #333;
  --text-light: #6b7280;
  --sidebar-bg: #ffffff;
  --content-bg: #f9fafb;
  --border-color: #e5e7eb;
  --sidebar-width: 290px;
  --sidebar-width-collapsed: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--content-bg);
  color: var(--text-dark);
}

.page-wrapper {
  display: flex;
  transition: margin-left 0.3s ease;
}

#headerContainer {
  transition: left 0.3s ease;
}


.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  transition: width 0.3s ease;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-header {
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.sidebar-nav {
  list-style: none;
  padding: 0 1rem;
  margin: 0;
}

.sidebar-heading {
  padding: 1rem 1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.page-title h1 {
  font-size: 2rem;
}

li.breadcrumb-item {
  font-size: 16px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  font-weight: 500;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

  .nav-link:hover {
    background-color: #2a62db36;
    color: var(--text-dark);
  }

    .nav-link:hover.nav-link i {
      color: #2a62db !important;
    }

    .nav-link:hover.nav-link {
      color: #ffffff !important;
    }

  .nav-link.active {
    background-color: var(--light-green-bg);
    color: #2a62db;
  }

    .nav-link.active i {
      color: #2a62db;
    }

  .nav-link i {
    font-size: 1.1rem;
    width: 20px;
    margin-right: 1rem;
    text-align: center;
    color: #9ca3af;
    transition: color 0.2s ease;
  }

  .nav-link .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
  }



  .nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
  }

.sub-menu {
  list-style: none;
  padding-left: calc(20px + 2rem);
}

  .sub-menu a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
  }

    .sub-menu a:hover {
      color: var(--text-dark);
    }

.sidebar-collapsed .sidebar {
  width: var(--sidebar-width-collapsed);
}

  .sidebar-collapsed .sidebar .brand-name,
  .sidebar-collapsed .sidebar .nav-link span,
  .sidebar-collapsed .sidebar .sidebar-heading,
  .sidebar-collapsed .sidebar .fa-chevron-down,
  .sidebar-collapsed .sidebar .badge {
    display: none;
  }

  .sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
  }

    .sidebar-collapsed .sidebar .nav-link i {
      margin-right: 0;
    }

.sidebar-collapsed .main-content {
  margin-left: var(--sidebar-width-collapsed);
}

.main-content {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
  overflow: auto;
}


.main_button {
  margin-top: 20%;
  font-size: 20px;
}

header {
  width: -webkit-fill-available; /* For Safari/Chrome */
  width: -moz-available; /* For Firefox */
  width: fill-available; /* Future standard (not widely supported yet) */
  background: #fff;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  position: fixed;
  z-index: 555;
}


.sidebar-collapsed .header {
  width: calc(100% - 80px) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

  .header-actions .btn {
    color: var(--text-light);
    font-size: 1.2rem;
  }

  .header-actions .dropdown-toggle::after {
    display: none;
  }

  .header-actions .dropdown-menu {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: none;
  }

main.content-fluid {
  padding: 2rem;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
}

.breadcrumb-item a {
  text-decoration: none;
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-light);
}

.page-title {
  margin-bottom: 1.5rem;
}

.brand-name img {
  width: 150px;
}

button.btn.btn-outline-secondary.btn-sm.edit-btn {
  display: block;
  margin-top: 4px;
}

.btn_allsave_list {
  display: flex;
  align-items: center;
  gap: 0 10px;
  float: right;
}

a.btn-secondary.px-4.ms-2 {
  margin: 0 !important;
  text-align: center;
}

button.btn.btn-primary {
  padding: 10px 18px;
  display: block;
}

a.btn.btn-secondary {
  display: block;
  padding: 14px 44px;
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 991.98px) {

  .sidebar {
    display: none;
  }


  .main-content {
    margin-left: 0;
  }

  #sidebar-toggle {
    display: none;
  }

  #fullscreen {
    display: none;
  }

  .brand-name img {
    width: 130px;
  }

  .offcanvas-header {
    position: relative;
  }

  .btn-close {
    position: absolute;
    top: 30px;
    right: 30px;
  }

  .sidebar-header {
    padding: 1rem 0.5rem;
  }

  .header {
    width: 100%;
  }

  .sidebar-collapsed .header {
    width: 100%;
  }
}

.offcanvas {
  background-color: var(--sidebar-bg);
}

.offcanvas-body {
  padding: 0;
}

.offcanvas .sidebar-nav {
  padding: 0 1rem;
}

.offcanvas .brand-name {
  font-size: 1.5rem;
  font-weight: 600;
}

.data-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin: 105px 0 48px 0;
}

.card-header, .card-footer {
  background-color: transparent;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.card-footer {
  border-top: 1px solid #e9ecef;
  border-bottom: none;
}

.card-filters {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background-color: #fcfcfd;
}

.table {
  margin-bottom: 0;
  white-space: nowrap;
}

  .table thead th {
    background-color: #f8f9fa;
    border-bottom: none !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    vertical-align: middle;
  }

  .table tbody td {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #495057;
    vertical-align: middle;
    border-top: 1px solid #e9ecef;
  }

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

.sortable {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.sort-icon {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #adb5bd;
  margin-left: 8px;
  font-size: 0.8em;
}

.sortable.asc .sort-icon::before {
  content: "\f0de";
  color: #0d6efd;
}

.sortable.desc .sort-icon::before {
  content: "\f0dd";
  color: #0d6efd;
}

.status-dot {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.status-green {
  background-color: #198754;
}

.status-red {
  background-color: #dc3545;
}

.bg-success-light {
  background-color: rgba(25, 135, 84, 0.1);
}

.text-success {
  color: #198754 !important;
}

.bg-danger-light {
  background-color: rgba(220, 53, 69, 0.1);
}

.text-danger {
  color: #dc3545 !important;
}

.badge {
  font-weight: 500;
  padding: 0.4em 0.7em;
}

.btn-outline-secondary {
  border-color: #ced4da;
  color: #6c757d;
}

  .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
  }

.custom-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-weight: 600;
  color: #6c757d;
  border: none;
  background-color: transparent;
  margin: 0 4px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

  .custom-pagination .page-link:hover {
    color: #4f46e5;
    background-color: #eef2ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  }

.custom-pagination .page-item.active .page-link {
  background-color: #2a62db;
  color: #fff;
  box-shadow: 0 6px 12px rgba(42, 98, 219, 0.4);
  transform: translateY(-1px);
}

  .custom-pagination .page-item.active .page-link:hover {
    color: #fff;
    background-color: #4f46e5;
  }

.custom-pagination .page-item.disabled .page-link {
  color: #ced4da;
  background-color: transparent;
  cursor: not-allowed;
}

  .custom-pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background-color: transparent;
  }

.custom-pagination .page-link:focus {
  box-shadow: none;
}

.text-muted {
  font-weight: 600;
}

.btn {
  display: none;
}

button.btn {
  font-size: 16px;
  padding: 4px 10px;
}



.main_button {
  background-color: transparent;
  border: none;
}

#sidebar.hidden {
  display: none !important;
}

.main-content.full-width {
  margin-left: 0 !important;
  width: 100% !important;
  transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
  .card-footer.d-flex.flex-wrap.justify-content-between.align-items-center {
    flex-direction: column;
    gap: 10px;
  }

  .main_button {
    display: none;
  }

  .btn {
    display: block;
  }

}

.backListBtn {
  border: 1px solid #e7eaf0;
  background: transparent;
  padding: 7px 0;
  width: 120px;
  text-align: center;
  border-radius: 0.25rem;
  text-decoration: none;
  cursor: pointer;
}

.updateBtn {
  padding: 7px 0;
  width: 120px;
  text-align: center;
  background: #2a62db;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  text-decoration: none;
  cursor: pointer;
}

.footerBtn {
  display: flex;
  grid-gap: 20px;
}

.backListBtn:hover {
  color: #fff;
  background: #6c757d;
}

.updateBtn:hover {
  background: #0d6efd;
}

.formDiv {
  padding: 1.25rem 1.5rem;
}

  .formDiv .form-control {
    border-color: #cbd5e1;
  }

  .formDiv .form-label {
    color: #212529;
    font-weight: 500;
  }

.modal-body form label {
  color: #212529;
  font-weight: 500;
}

.userDiv {
  display: flex;
  gap: 15px;
}

.addRegistrationBtn {
  padding: 7px 10px;
  text-align: center;
  background: #2a62db;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  text-decoration: none;
  cursor: pointer;
}

.addRegistrationBtn:hover {
  background: #0d6efd;
}

.dropdown a i {
  color: #2a62db;
  font-size: 20px;
}

.dropdown a span {
  color: #2a62db;
  font-weight: 600;
}

.dropdown-item:focus, .dropdown-item:hover {
  background-color: #2a62db;
  color: #fff;
}

.dropdown-item i {
  color: #6b7280 !important;
}

.dropdown-item:focus, .dropdown-item:hover.dropdown-item i {
  color: #fff !important;
}


button.btn-primary {
  padding: 8px 10px;
  border: none;
  border-radius: 5px;
}

button.btn-secondary {
  padding: 8px 34px;
  border: none;
  border-radius: 5px;
}

a.btn-secondary {
  padding: 8px 34px;
  border: none;
  border-radius: 5px;
  text-decoration:none;
}
.btn-danger {
  padding: 8px 30px;
  border: none;
  border-radius: 5px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  color: #333; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.table thead th {
  background-color: cadetblue;
  color: white;
  padding: 12px 15px;
  text-align: left;
  border-bottom: 2px solid #3e8e41;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody td {
  padding: 10px 15px;
  border-bottom: 1px solid #ddd; 
}


.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f2f2f2;
}

.table-hover tbody tr:hover {
  background-color: #e9ecef; 
  cursor: pointer; 
}

.table.align-middle tbody td {
  vertical-align: middle;
}

@media (max-width: 575px) {

  .btn_allsave_list {
    gap: 10px 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

/*  .modal-content{
    width: 100%;
  }*/

}

/*.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 4px;
  width: 500px;
  text-align: end;
}

.modal-content p{
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}*



