/* sidebar */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #f0f2f5;
}
.profile-icon {
      /* position: fixed; */
      /* top: 1%; */right: 30px;
      z-index: 999;
      cursor: pointer;
      color: #2c3e50;
      font-size:15px;
      
    }

    .profile-card {
      position: fixed;
      top: 70px;
      right: 20px;
      width: 280px;
      background: #ffffff;
      border-radius: 16px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
      padding: 20px;
      display: none;
      z-index: 1000;
      animation: fadeIn 0.3s ease;
    }

    .profile-card.show {
      display: block;
    }

    .profile-card img {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #003287;
      margin-bottom: 10px;
    }

    .profile-card h5 {
      margin: 5px 0 0;
      font-weight: 600;
    }

    .profile-card small {
      color: #6c757d;
    }

    .profile-card .btn {
      font-size: 14px;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .profile-card .info-line {
      font-size: 14px;
      margin-bottom: 6px;
      color: #333;
    }

    .profile-card .info-line i {
      margin-right: 6px;
      color: #007bff;
    }
    
    
    .quicklink-popup {
  position: absolute;
  top: 5rem;
  right: 3rem;
  width: 250px;
  background:white;
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 15px;
  display: none;
  z-index: 999;
  animation: fadeIn 0.4s ease-in-out;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.quick-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ffffff;
  text-decoration: none;
  background: #0056b3;
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 90px;
}

.quick-icon small {
  
  font-size: 0.85rem;
  color: #f1f1f1;
}

.quick-icon:hover {
  transform: translateY(-5px) scale(1.05);
  background: #007bff;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(13, 110, 253, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-card h6 {
  margin-top: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.glass-card p {
  margin: 5px 0 0;
  font-size: 1.4rem;
  font-weight: bold;
  color: #000;
}

.glass-card {
  background:white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 10px 15px 20px;
  border-radius: 20px;
  text-align: center;
  color: #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
  position: absolute;
  top: -25px;
  left: 80%;
  transform: translateX(-50%);
  background: #fff;
  color: #fff;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.sidebar-logo {
  background-image: url('../images/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 50%;     /* Set desired width */
  height: 100px;    /* Set desired height */
  display: block;
  margin-left: 5rem;
  margin-top: -1rem;

   /* Center it if needed */
}

/* add new btn in every data table/list pages */
.add-btn-custom {
  background-color: #003287;
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 50, 135, 0.3);
}

.add-btn-custom::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.add-btn-custom:hover::after {
  left: 200%;
}

.add-btn-custom:hover {
  background-color: #002a70;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 50, 135, 0.5);
}


  :root {
    --theme-color: #002a70;
  }

  .theme-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
  }

  .theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }

  .section-title {
    color: var(--theme-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
  }

  .btn-outline-primary {
    border-color: var(--theme-color);
    color: var(--theme-color);
  }

  .btn-outline-primary:hover {
    background-color: var(--theme-color);
    color: #fff;
  }

 

  .table th{
     background-color:#003287;
    color: #fff;

  }

  .list-group-item {
    border: none;
    padding-left: 0;
    padding-right: 0;
  }
  
.sidebar {
  width: 250px;
  background: #ffffff;
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #333;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed ul li a span {
  display: none;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #333;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.sidebar ul li a i {
  margin-right: 15px;
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: black; /* keep your icon blue */
}

/* Hover Effects */
.sidebar ul li a:hover {
background-color: #f6f9ff;
  color: #003287;
  border-left: 4px solid #003287;
  margin-left: 25px;
}

.sidebar ul li a {
  transition: all 0.5s ease; /* Adjust duration as needed */
}


/* Submenu */
.submenu {
  display: none;
background-color: #f6f9ff;
padding-left: 15px;

transition: all 0.5s ease;
}

.submenu.open {
  display: block;
}

/* Arrow for submenu toggle */
.has-submenu .arrow {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.arrow.rotated {
  transform: rotate(180deg);
}

/* Sidebar Toggle Button */
/* Toggle Button Bars */
.toggle-btn {
  width: 35px;
  height: 30px;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
}

.bars {
  height: 4px;
  background-color: #003287;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Bar animations */
#checkbox:checked + .toggle-btn #bar1 {
  transform: rotate(45deg) translate(6px, 6px);
}

#checkbox:checked + .toggle-btn #bar2 {
  opacity: 0;
}

#checkbox:checked + .toggle-btn #bar3 {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar toggle using JS class, you still use .collapsed or .active in JS */
.sidebar {
  transition: all 0.3s ease;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.active {
  left: 0;
}
@media (max-width: 768px) {
  .sidebar {
    left: -250px;
  }
  .sidebar.active {
    left: 0;
  }
  .main-content {
    margin-left: 0 !important;
  }

  .fw-bold {
    margin-left: 2rem;
  }
}




/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 10px;
  transition: margin-left 0.3s ease;
}
.main-content.expanded {
  margin-left: 60px;
}




/* Main Card/Container */
.custom-box {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Custom style for DataTable */
#DataTable thead th {
  text-align: center !important;
  vertical-align: middle !important;
  text-transform: uppercase;
  font-weight: 600;
  font-size: larger;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: #003287;
  color: white !important;
}
#DataTable tbody td {
  text-align: center !important;
    vertical-align: middle !important;
}
#delDataTable thead th {
  text-align: center !important;
  vertical-align: middle !important;
  text-transform: uppercase;
  font-weight: 600;
  font-size: larger;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: #003287;
  color: white !important;
}
#delDataTable tbody td {
  text-align: center !important;
    vertical-align: middle !important;
}

#UserTable thead th {
  text-align: center !important;
  vertical-align: middle !important;
  text-transform: uppercase;
  font-weight: 600;
  font-size: larger;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: #003287;
  color: white !important;
}
#UserTable tbody td {
  text-align: center !important;
    vertical-align: middle !important;
}

/* Pagination Button Styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 6px 2px !important;
  margin: 2px;
  border-radius: 6px; 
  border: none;
  transition: all 0.2s ease;
}


.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  color: white !important;
  font-weight: bold;
}

/* Search Filter Input */
.dataTables_wrapper .dataTables_filter {
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: right !important;
  margin-right: 5px;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 20px;
  padding: 5px 12px;
  border: 1px solid #ccc;
  margin-left: 10px;
   margin-left: 3px;
}

/* Length Dropdown */
.dataTables_wrapper .dataTables_length {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Optional: Align search/length on larger screens */
@media (min-width: 768px) {
  .dataTables_wrapper .row {
    align-items: center;
  }
}


/* forms */

.form-card {
    border-radius: 1rem;
  }

.section-style {
  background-color: #f1f3f5;  /* clean and subtle */
  border-radius: 1rem;
  padding: 20px;
  margin-bottom: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.03);
}
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #444;
    border-left: 4px solid #003287;
    padding-left: 10px;
    margin-bottom: 10px;
  }
  .form-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
  }
  .custom-input {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: 0.2s ease;
    background-color: #fff;
  }

  .custom-input:focus {
    border-color:#003287;
    /* box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.2); */
  }

/* Reserve space for validation messages so buttons don't jump when errors appear */
.invalid-feedback {
  display: block; /* always take up space */
  visibility: hidden; /* hide text when empty */
  min-height: 1.05rem; /* reserve about one line */
  margin-top: .25rem;
}
.form-control.is-invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-feedback,
.was-validated :invalid ~ .invalid-feedback {
  visibility: visible;
}

  .btn-custom {
    background-color: #003287;
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
  }

  .btn-custom:hover {
    background-color: #0056b3;
  }



  /* add product page image preview */
.preview-box {
  width: 250px;
  height: 150px;
  border: 2px dashed #003287;
  border-radius: 12px;
  background: linear-gradient(135deg, #f9f9f9, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
  position: relative;
}

.preview-box:hover {
  border-color: #003287;
  box-shadow: 0 6px 18px rgba(108, 99, 255, 0.2);
  transform: scale(1.03);
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.preview-box::after {
  content: "\f030"; /* camera icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 28px;
  color: #ccc;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  pointer-events: none;
}



/* for adding new address */
.radio-card-wrapper {
  flex: 1 1 45%;
  cursor: pointer;
}

.radio-card {
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.radio-card-wrapper:hover .radio-card {
  transform: translateY(-3px);
  border-color: #0056b3;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.1);
}

.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #ccc;
  transition: all 0.3s ease;
  background-color: #fff;
}

.radio-card-wrapper input[type="radio"]:checked + .radio-card .radio-dot {
  background-color: #0056b3;
  border-color:#0056b3;
  box-shadow: 0 0 0 6px rgba(108, 99, 255, 0.15);
}

.radio-card-wrapper input[type="radio"]:checked + .radio-card {
  border-color: #0056b3;
  background-color: #eef1ff;
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.15);
}



/* after submit btn click  */

.custom-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  background: linear-gradient(135deg, #00c853, #64dd17);
  color: #fff;
  padding: 32px 48px;
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
  opacity: 0;
  text-align: center;
  font-size: 20px;
  min-width: 360px;
  max-width: 80%;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.custom-alert.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.custom-alert.hide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Tick animation */
.custom-alert .tick {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  animation: tickBounce 0.6s ease forwards;
}

@keyframes tickBounce {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  60% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}



/* Fullscreen dark overlay loader*/
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8); /* semi-transparent dark */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Loader styling */
.loader {
  font-size: 30px;
  display: flex;
  gap: 10px;
}

.loader span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: capitalize;
  font-family: 'Segoe UI', sans-serif;
  font-weight: bold;
  color: #003287;
  background-color: #dbd5f3;
  border-radius: 8px;
  min-width: 40px;
  padding: 10px;
  animation: peek 1s both infinite;
  animation-delay: var(--d);
}

/* Animation */
@keyframes peek {
  25% {
    transform: rotateX(30deg) rotate(-13deg);
  }
  50% {
    transform: translateY(-22px) rotate(3deg) scale(1.1);
    color: #6a45ed;
  }
}

/* Utility */
.d-none {
  display: none !important;
}


 .login-page {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(to right, #001c4a, #003287);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-card {
            animation: fadeInUp 1s ease;
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            padding: 40px 30px;
            max-width: 400px;
            width: 100%;
        }

        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .login-header h2 {
            font-weight: 600;
            color: #003287;
        }

        .form-control:focus {
            box-shadow: none;
            border-color: #003287;
        }

        .btn-login {
            background: #003287;
            color: white;
            font-weight: 600;
        }

        .btn-login:hover {
            background:#6a45ed;
        }

        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(50px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .logo-circle {
            width: 150px;
            /* height: 100px; */
            /* background: #003287; */
            /* border-radius: 50%; */
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 28px;
            font-weight: bold;
            margin: 0 auto 10px;
        }