:root {
  --primary-color:linear-gradient(135deg, #0f172a 0%, #1e293b 100%);;
  --secondary-color: #7B6FB0;
  --text-color: #333;
  --border-color: #e5e7eb;
  --bg-color: #f9fafb;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 70px;
  --header-height: 60px;
  --transition-speed: 0.3s;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-color);
}

.container {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  transition: width var(--transition-speed) ease;
  position: fixed;
  height: 85vh;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: black 0 0 10px 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  justify-content: space-between;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.toggle-btn {
  /* position: absolute; */
  right: 0;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
}

.search-box input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  padding: 0.5rem;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.id-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Menu Styles */
.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  transition: all var(--transition-speed) ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.menu-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.menu-item i {
  width: 20px;
  text-align: center;
}

.submenu {
  height: 0;
  overflow: hidden;
  transition: height var(--transition-speed) ease;
  margin-left: 2.5rem;
}

.submenu .menu-item {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
/* Icon rotation */
.submenu-icon {
  user-select: none;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.submenu-icon.rotated {
  transform: rotate(180deg); /* Rotate 180 degrees when active */
}
/* User Profile Section */
.user-profile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  padding: 1rem;
  background: var(--primary-color);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: width var(--transition-speed) ease;
}

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

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
}

.user-name {
  font-weight: 500;
  text-align: center;
  font-size: 0.9rem;
}
.user-role{
  font-size: x-small;
  text-align: center;
}

.user-email {
  font-size: 0.8rem;
  opacity: 0.8;
}

.btn-logout {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
}

/* Collapsed Sidebar Styles */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-header h2,
.sidebar.collapsed .sidebar-header span,
.sidebar.collapsed .search-box,
.sidebar.collapsed .menu-item span,
.sidebar.collapsed .user-info,
.sidebar.collapsed .id-section,
.sidebar.collapsed .submenu-icon {
  display: none;
}

.sidebar.collapsed .menu-item {
  padding: 0.75rem;
  justify-content: center;
}

.sidebar.collapsed .menu-item i {
  margin: 0;
  width: auto;
}

.sidebar.collapsed .submenu {
  display: none;
}

.sidebar.collapsed .user-profile {
  width: calc(var(--sidebar-collapsed-width));
  justify-content: center;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: calc(var(--sidebar-width) + 20px);
  padding: 2rem;
  transition: margin-left var(--transition-speed) ease;
}

.sidebar.collapsed + .main-content {
  margin-left: calc(var(--sidebar-collapsed-width) + 20px);
}

.page-header {
  display: flex;
  justify-content: space-between; /* Space between the icon/title and button */
  align-items: center; /* Vertically center items */
  padding: 16px;
  background-color: #f9fafb; /* Light background */
  border-bottom: 1px solid #e5e7eb; /* Optional bottom border */
}

.page-header-left {
  display: flex; /* Align icon and title horizontally */
  align-items: center; /* Vertically align icon and title */
}

.page-header-icon {
  font-size: 2rem; /* Adjust icon size */
  color: #4f46e5; /* Icon color */
  margin-right: 16px; /* Spacing between icon and title */
}

.page-header-content {
  display: flex;
  flex-direction: column; /* Stack title and subtitle vertically */
}

.page-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

.page-subtitle {
  font-size: 1rem;
  color: #6b7280; /* Gray color for subtitle */
  margin: 4px 0 0; /* Add small spacing below title */
}

.upload-btn {
  background-color: #6366f1; /* Primary button color */
  color: white; /* Button text color */
  font-size: 1rem;
  font-weight: bold;
  padding: 8px 16px; /* Adjust padding */
  border: none;
  border-radius: 6px; /* Rounded corners */
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow */
  transition: background-color 0.3s ease;
}

.upload-btn:hover {
  background-color: #4f46e5; /* Darker shade on hover */
}

.upload-btn:active {
  background-color: #4338ca; /* Even darker shade on click */
}

/* Stats Container */
.page-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card .title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-card .subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
}

.ml-50{
    margin-left: 50px;
}


/* .login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f9fafb;
} */

.login-container {

background-image: url(./asset/icon/community.svg);
width: 100%;
background-position: bottom;
display: flex;
justify-content: center;
align-items: center;
background-repeat: repeat-x;
}

.login-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
}

.form-group input {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.btn-login {
  background: linear-gradient(135deg, #8E24AA 0%, #4A148C 100%);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.btn-login:hover {
  opacity: 0.9;
}
.hide{
  display: none;
}

/* Modal Styles */
.modal {
          display: none;
          /* Hidden by default */
          position: fixed;
          /* Stay in place */
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: rgba(0, 0, 0, 0.6);
          /* Black background with opacity */
          z-index: 1000;
          /* Sit on top */
          opacity: 0;
          pointer-events: none;
          transition: opacity 0.3s ease;
      }

      .modal.show {
          display: block;
          opacity: 1;
          pointer-events: auto;
      }

      .modal-content {
          background-color: #fff;
          margin: 10% auto;
          padding: 20px 30px;
          border-radius: 12px;
          width: 90%;
          max-width: 500px;
          box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
          animation: slideDown 0.4s ease;
          position: relative;
      }

      @keyframes slideDown {
          from {
              transform: translateY(-50px);
              opacity: 0;
          }

          to {
              transform: translateY(0);
              opacity: 1;
          }
      }

      .close {
          color: #aaa;
          font-size: 24px;
          font-weight: bold;
          position: absolute;
          top: 15px;
          right: 20px;
          cursor: pointer;
          transition: color 0.3s ease;
      }

      .close:hover,
      .close:focus {
          color: #ff3b3b;
      }

      .modal-footer {
          text-align: right;
          margin-top: 20px;
      }

      .modal-footer button {
          margin-left: 10px;
          padding: 8px 16px;
          font-size: 14px;
          border-radius: 4px;
          border: none;
          cursor: pointer;
          transition: all 0.3s ease;
      }

      .modal-footer button.save {
          background-color: #28a745;
          color: white;
      }

      .modal-footer button.save:hover {
          background-color: #218838;
      }

      .modal-footer button.cancel {
          background-color: #dc3545;
          color: white;
      }

      .modal-footer button.cancel:hover {
          background-color: #c82333;
      }




      /* Wrapper for all categories */
.category-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px; /* Space between categories */
  margin-top: 16px;
}

/* Each category container */
.category-container {
  flex: 1;
  min-width: 300px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

/* Category Header */
.category-header {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
  text-transform: uppercase;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

/* Stats Row */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px; /* Space between stats */
}

/* Stat Card */
.stat-card {
  flex: 1;
  min-width: 150px;
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}

.stat-card:hover {
  transform: scale(1.05);
}

.stat-card .icon {
  font-size: 36px;
  margin-right: 16px;
}

.stat-card .details .title {
  font-weight: bold;
  font-size: 16px;
}

.stat-card .details .subtitle {
  font-size: 12px;
  opacity: 0.8;
}

.stat-card .details .value {
  font-size: 24px;
  font-weight: bold;
  margin-top: 8px;
}

  /* Fullscreen loader container */
  .loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2c3e507d;
    /* Dark background color */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

/* Loader animation - concentric circles */
.loader {
  user-select: none;
    position: relative;
    width: 100px;
    height: 100px;
}

.circle {
    position: absolute;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: rotate 1.5s linear infinite;
}

.circle:nth-child(1) {
    width: 100px;
    height: 100px;
    border-top: 4px solid #e74c3c;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 80px;
    height: 80px;
    border-top: 4px solid #3498db;
    animation-delay: -0.5s;
}

.circle:nth-child(3) {
    width: 60px;
    height: 60px;
    border-top: 4px solid #f1c40f;
    animation-delay: -1s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loader text */
.loader-text {
    position: absolute;
    top: 120px;
    font-size: 1.2rem;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fade 1.5s ease-in-out infinite;
}

@keyframes fade {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  box-sizing: border-box;
}

th {
  background-color: #f2f2f2;
  text-align: left;
}
 td {
  overflow: hidden; /* Prevent overflow */
  text-overflow: ellipsis; /* Add ellipsis for truncated text */
  white-space: nowrap; /* Prevent wrapping */
}

.table-action-btn {
  background-color: #3f6ad8; /* Base background color */
  border: none;
  display: inline-block;
  box-sizing: border-box;
  margin: 0.333em;
  padding: 0.5em 1em;
  border-radius: 25px; /* Rounded corners */
  cursor: pointer;
  font-size: 0.88em;
  line-height: 1.6em;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.21); /* Subtle shadow */
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Prevent text overflow */
  user-select: none;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease; /* Smooth transitions */
}

/* Hover State */
.table-action-btn:hover {
  background-color: #345bb5; /* Darker blue */
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3); /* Slightly stronger shadow */
  transform: translateY(-2px); /* Subtle lift effect */
}

/* Active State */
.table-action-btn:active {
  background-color: #2c4a99; /* Even darker blue for action */
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2); /* Reduced shadow */
  transform: translateY(0); /* Reset lift effect */
}
.dataTables_filter{
  padding: 10px;
}

input[type="search"] {
 border-radius: 25px !important;
}

.badge {
  text-align: center;
  margin: 0%;
  padding: 0%;
  min-width: 75px;
}

