
body.login-page {
    background: #000;
}

body.login-page::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    background: url("/static/js/img/login-bg.jpg");
    background-position: center;
    background-size: 100%;
}
body.dashboard {
 padding-top: 0 !important;
}
#logoutButton {
  cursor: pointer;
}
#logoutButton i {
  font-size: 24px;
}
.dashboard .navbar-brand img {
  max-height: 45px;
}
.dashboard .menu-actions {
  display: flex;
  align-items: center;
}


.dashboard .menu-actions theme-toggle{
  margin-right: 30px;
}
.dashboard .menu-actions #auth-menu {    margin-right: 30px;
  margin-top: 8px;
}
.form-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 4px;
    padding: 70px;
    width: 450px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .75);
}

.form-wrapper h2 {
    color: #fff;
    font-size: 2rem;
}

.form-wrapper form {
    margin: 25px 0 65px;
}

form .login-form-control {
    height: 50px;
    position: relative;
    margin-bottom: 16px;
}

.login-form-control input {
    height: 100%;
    width: 100%;
    background: #333;
    border: none;
    outline: none;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    padding: 0 20px;
}

.login-form-control input:is(:focus, :valid) {
    background: #444;
    padding: 16px 20px 0;
}

.login-form-control label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    color: #8c8c8c;
    transition: all 0.1s ease;
}

.login-form-control input:is(:focus, :valid)~label {
    font-size: 0.75rem;
    transform: translateY(-130%);
}

form button {
    width: 100%;
    padding: 16px 0;
    font-size: 1rem;
    background: #e50914;
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    outline: none;
    margin: 25px 0 10px;
    cursor: pointer;
    transition: 0.1s ease;
}

form button:hover {
    background: #c40812;
}

.form-wrapper a {
    text-decoration: none;
}

.form-wrapper a:hover {
    text-decoration: underline;
}

.form-wrapper :where(label, p, small, a) {
    color: #b3b3b3;
}

form .form-help {
    display: flex;
    justify-content: space-between;
}

form .remember-me {
    display: flex;
}

form .remember-me input {
    margin-right: 5px;
    accent-color: #b3b3b3;
}

form .form-help :where(label, a) {
    font-size: 0.9rem;
    padding: 0;
}

.form-wrapper p a {
    color: #fff;
}

.form-wrapper small {
    display: block;
    margin-top: 15px;
    color: #b3b3b3;
}

.form-wrapper small a {
    color: #0071eb;
}

@media (max-width: 740px) {
    body::before {
        display: none;
    }

    nav, .form-wrapper {
        padding: 20px;
    }

    nav a img {
        width: 140px;
    }

    .form-wrapper {
        width: 100%;
        top: 43%;
    }

    .form-wrapper form {
        margin: 25px 0 40px;
    }
}

body.login-page, body.group-list-page {
    background-color: #f0f0f0;
    height: 100vh;
    margin: 0;
  }
  
/* Light theme */
body.light .table-wrapper {
    color: #000000;
    padding: 30px 20px;
  }
  
  body.light #groupTable {
    width: 100%;
    border-collapse: collapse;
  }
  
  body.light #groupTable thead {
    background-color: #f4f4f4;
    color: #000000;
  }
  
  body.light #groupTable thead th {
    padding: 10px;
    border-bottom: 2px solid #dddddd;
    text-align: left;
  }
  
  body.light #groupTable tbody tr {
    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
  }
  
  body.light #groupTable tbody tr:hover {
    background-color: #f0f0f0;
  }
  
  body.light #groupTable tbody td {
    padding: 10px;
  }
  
  body.light h2 {
    text-align: left;
    margin-bottom: 20px;
  }
  
  /* Dark theme */
  body.dark .table-wrapper {
    color: #e0e0e0;
    padding: 30px 20px;
  }
  
  body.dark #groupTable {
    width: 100%;
    border-collapse: collapse;
  }
  
  body.dark #groupTable thead {
    background-color: #333333;
    color: #e0e0e0;
  }
  
  body.dark #groupTable thead th {
    padding: 10px;
    border-bottom: 2px solid #555555;
    text-align: left;
  }
  
  body.dark #groupTable tbody tr {
    background-color: #1a1a1a;
    border-bottom: 1px solid #555555;
  }
  
  body.dark #groupTable tbody tr:hover {
    background-color: #2a2a2a;
  }
  
  body.dark #groupTable tbody td {
    padding: 10px;
  }
  
  body.dark h2 {
    text-align: left;
    margin-bottom: 20px;

  }
  
  body.light .delete-btn {
    background-color: #ff4d4d;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  body.light .delete-btn:hover {
    background-color: #ff1a1a;
  }
  
  body.light .delete-btn i {
    font-size: 16px;
  }
  
  /* Dark theme */
  body.dark .delete-btn {
    background-color: #ff4d4d;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  body.dark .delete-btn:hover {
    background-color: #ff1a1a;
  }
  
  body.dark .delete-btn i {
    font-size: 16px;
  }

  /* Light theme */
body.light .view-btn {
  background-color: #1e90ff; /* Blue background */
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.light .view-btn:hover {
  background-color: #005ce6; /* Darker blue on hover */
}

body.light .view-btn i {
  font-size: 16px;
}

body.light .edit-btn {
  background-color: #ffa500; /* Orange background */
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.light .edit-btn:hover {
  background-color: #cc8400; /* Darker orange on hover */
}

body.light .edit-btn i {
  font-size: 16px;
}

/* Dark theme */
body.dark .view-btn {
  background-color: #1e90ff; /* Blue background */
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.dark .view-btn:hover {
  background-color: #005ce6; /* Darker blue on hover */
}

body.dark .view-btn i {
  font-size: 16px;
}

body.dark .edit-btn {
  background-color: #ffa500; /* Orange background */
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.dark .edit-btn:hover {
  background-color: #cc8400; /* Darker orange on hover */
}

body.dark .edit-btn i {
  font-size: 16px;
}

  /* Light theme */
body.light .view-users-btn{
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  body.light .view-users-btn:hover {
    background-color: #45a049;
  }
  
  body.light .view-users-btn i {
    font-size: 16px;
  }
  
  /* Dark theme */
  body.dark .view-users-btn {
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  body.dark .view-users-btn:hover {
    background-color: #45a049;
  }
  
  body.dark .view-users-btn i {
    font-size: 16px;
  }
  
  /* Light theme */
body.light .add-users-btn {
    background-color: #2196F3;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  body.light .add-users-btn:hover {
    background-color: #1976D2;
  }
  
  body.light .add-users-btn i {
    font-size: 16px;
  }
  
  /* Dark theme */
  body.dark .add-users-btn {
    background-color: #2196F3;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  body.dark .add-users-btn:hover {
    background-color: #1976D2;
  }
  
  body.dark .add-users-btn i {
    font-size: 16px;
  }
  

  /* Light theme for User List */
body.light .user-table-wrapper {
    color: #000;
    padding: 30px 20px;
  }
  
  body.light #userTable {
    width: 100%;
    border-collapse: collapse;
  }
  
  body.light #userTable thead {
    background-color: #f4f4f4;
    color: #000000;
  }
  
  body.light #userTable thead th {
    padding: 10px;
    border-bottom: 2px solid #dddddd;
    text-align: left;
  }
  
  body.light #userTable tbody tr {
    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
  }
  
  body.light #userTable tbody tr:hover {
    background-color: #f0f0f0;
  }
  
  body.light #userTable tbody td {
    padding: 10px;
  }
  
  body.light .user-table-wrapper h2 {
    text-align: left;
    margin-bottom: 20px;
  }
  
  /* Dark theme for User List */
body.dark .user-table-wrapper {
    color: #e0e0e0;
    padding: 30px 20px;
    width: 100%;
  }
  
  body.dark #userTable {
    width: 100%;
  }
  body.dark #userTable thead {
    background-color: #333333;
    color: #e0e0e0;
  }
  
  body.dark #userTable thead th {
    padding: 10px;
    border-bottom: 2px solid #555555;
    text-align: left;
  }
  
  body.dark #userTable tbody tr {
    background-color: #1a1a1a;
    border-bottom: 1px solid #555555;
  }
  
  body.dark #userTable tbody tr:hover {
    background-color: #2a2a2a;
  }
  
  body.dark #userTable tbody td {
    padding: 10px;
  }
  
  body.dark .user-table-wrapper h2 {
    text-align: left;
    margin-bottom: 20px;
  }

  /* Modal styles */
.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.4);
  }
  
  .modal-content {
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
  }
  
  .modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .modal-content .form-control {
    margin-bottom: 15px;
    background-color: inherit;
    color: inherit;
  }
  
  .modal-content .form-control label {
    display: block;
    margin-bottom: 5px;
  }
  
  .modal-content .form-control input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .modal-content .form-control input:focus {
    border-color: #007bff;
    outline: none;
  }
  
  .modal-content button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
  }
  
  .modal-content button:hover {
    background-color: #0056b3;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Light theme styles */
  body.light .modal-content {
    background-color: #fefefe;
    border: 1px solid #888;
  }
  
  body.light .modal-content .form-control {
    color: #000000;
    border: none;
  }
  
  body.light .modal-content .form-control input {
    background-color: #ffffff;
    color: #000000;
  }
  
  /* Dark theme styles */
  body.dark .modal-content {
    background-color: #2a2a2a;
    border: 1px solid #555555;
  }
  
  body.dark .modal-content .form-control {
    color: #e0e0e0;
    border: none;
  }
  
  body.dark .modal-content .form-control input {
    background-color: #333333;
    border: 1px solid #555555;
    color: #e0e0e0;
  }
  
  body.dark .modal-content .form-control input:focus {
    border-color: #007bff;
  }
  
  body.dark .close {
    color: #ccc;
  }
  /* Table actions container */
.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  /* Title styling */
  .table-actions .title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
  }
  
  /* Light theme */
  body.light #createGroupButton {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
  }
  
  body.light #createGroupButton:hover {
    background-color: #0056b3;
  }
  
  body.light #createGroupButton i {
    font-size: 16px;
    margin-right: 5px;
  }
  
  /* Dark theme */
  body.dark #createGroupButton {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
  }
  
  body.dark #createGroupButton:hover {
    background-color: #0056b3;
  }
  
  body.dark #createGroupButton i {
    font-size: 16px;
    margin-right: 5px;
  }



  body.light .commonBtn {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
  }
  
  body.light .commonBtn:hover {
    background-color: #0056b3;
  }
  
  body.light .commonBtn i {
    font-size: 16px;
    margin-right: 5px;
  }
  
  /* Dark theme */
  body.dark .commonBtn {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
  }
  
  body.dark .commonBtn:hover {
    background-color: #0056b3;
  }
  
  body.dark .commonBtn i {
    font-size: 16px;
    margin-right: 5px;
  }
  #viewUsersModal .modal-content, #addUsersModal .modal-content{
    max-width: 800px;
  }
  /* Light theme */
body.light #usersTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  body.light #usersTable th, 
  body.light #usersTable td {
    border: 1px solid #ddd;
    padding: 8px;
  }
  
  body.light #usersTable th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #f2f2f2;
    color: black;
  }
  
  body.light #usersTable tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  body.light #usersTable tr:hover {
    background-color: #ddd;
  }
  
  /* Dark theme */
  body.dark #usersTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  body.dark #usersTable th, 
  body.dark #usersTable td {
    border: 1px solid #555;
    padding: 8px;
  }
  
  body.dark #usersTable th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #444444;
    color: #f1f1f1;
  }
  
  body.dark #usersTable tr:nth-child(even) {
    background-color: #3c3c3c;
  }
  
  body.dark #usersTable tr:hover {
    background-color: #555555;
  }
  
  body.dark #usersTable td {
    background-color: #2c2c2c;
    color: #f1f1f1;
  }
  
  /* Table styles for light theme */
body.light #usersTable, body.light #allUsersTable {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
  }
  
  body.light #usersTable th, body.light #allUsersTable th, 
  body.light #usersTable td, body.light #allUsersTable td {
    border: 1px solid #ddd;
    padding: 8px;
  }
  
  body.light #usersTable th, body.light #allUsersTable th {
    background-color: #f2f2f2;
    color: black;
  }
  
  body.light #usersTable tr:nth-child(even), body.light #allUsersTable tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  body.light #usersTable tr:hover, body.light #allUsersTable tr:hover {
    background-color: #ddd;
  }
  
  body.light .remove-btn, body.light .user-checkbox {
    cursor: pointer;
  }
  
  /* Table styles for dark theme */
  body.dark #usersTable, body.dark #allUsersTable {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
  }
  
  body.dark #usersTable th, body.dark #allUsersTable th, 
  body.dark #usersTable td, body.dark #allUsersTable td {
    border: 1px solid #444;
    padding: 8px;
  }
  
  body.dark #usersTable th, body.dark #allUsersTable th {
    background-color: #333;
    color: white;
  }
  
  body.dark #usersTable tr:nth-child(even), body.dark #allUsersTable tr:nth-child(even) {
    background-color: #444;
  }
  
  body.dark #usersTable tr:hover, body.dark #allUsersTable tr:hover {
    background-color: #555;
  }
  
  body.dark .remove-btn, body.dark .user-checkbox {
    cursor: pointer;
  }
  
  /* Checkbox styles */
  body.light .user-checkbox, body.dark .user-checkbox {
    margin-right: 8px;
  }
  
  
  /* Light theme */
body.light .user-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  body.light .user-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #2196F3;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
  }
  
  body.light .user-checkbox input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #2196F3;
    top: 4px;
    left: 4px;
    border-radius: 2px;
  }
  
  body.light .user-checkbox label {
    margin-left: 10px;
    font-size: 16px;
    cursor: pointer;
    color: #333;
  }
  
  /* Dark theme */
  body.dark .user-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  body.dark .user-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #2196F3;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
  }
  
  body.dark .user-checkbox input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #2196F3;
    top: 4px;
    left: 4px;
    border-radius: 2px;
  }
  
  body.dark .user-checkbox label {
    margin-left: 10px;
    font-size: 16px;
    cursor: pointer;
    color: #ccc;
  }

  .sidebar-container {
    position: relative;
  }
  
  .toggle-sidebar {
    position: fixed;
    left: 250px;
    top: 50%;
    transform: translateY(-50%);
    background: #444;
    color: #fff;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 18px;
    z-index: 1000;
    border-radius: 5px;
    transition: left 0.3s ease-in-out;
  }
  
  .sidebar.collapsed ~ .toggle-sidebar {
    left: 0;
  }
  
  .sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #333;
    overflow-x: hidden;
    padding-top: 20px;
    transition: width 0.3s ease-in-out;
  }
  
  .sidebar.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
  }
  
  .content-area {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
  }
  
  .sidebar.collapsed + .content-area {
    margin-left: 0;
  }
  
  
  .menu-section {
    margin-bottom: 10px;
  }
  
  .toggle-section {
    color: #ddd;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 16px;
    padding: 15px 20px;
    cursor: pointer;
  }
  
  .section-icon {
    margin-right: 10px;
    font-size: 18px;
  }
  
  .section-content {
    display: none;
    padding-left: 0;
  }
  
  .section-content.open {
    display: block;
  }
  
  .section-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .section-content li {
    padding: 10px 0;
    text-align: left;
  }
  
  .section-content a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    padding: 10px 20px;
  }
  
  .section-content a i {
    width: 20px;
    text-align: left;
    font-size: 18px;
    margin-right: 10px;
  }
  
  .section-content a .submenu-icon {
    margin-left: auto;
  }
  
  .section-content a:hover {
    color: #fff;
  }
  
  .submenu {
    display: none;
    transition: all 0.3s ease;
    padding-left: 20px;
  }
  
  .submenu.open {
    display: block;
  }
  
  .submenu li {
    padding: 10px 0;
  }
  
  .submenu a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    padding: 10px 20px;
  }
  
  .submenu a i {
    width: 20px;
    text-align: left;
    font-size: 18px;
    margin-right: 10px;
  }
  
  .submenu-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
  }
  
  .submenu-icon.rotated {
    transform: rotate(180deg);
  }
  
  .content-area {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
  }
  
  .sidebar.collapsed + .content-area {
    margin-left: 0;
  }
  
  .content-area.sidebar-collapsed {
    margin-left: 0;
  }
  
  /* Light Theme */
  body.light .sidebar {
    background-color: #f4f4f4;
  }
  
  body.light .sidebar .toggle-section {
    color: #333;
  }
  
  body.light .sidebar .section-content a {
    color: #333;
  }
  
  body.light .sidebar .section-content li:hover {
    background-color: #ddd;
  }
  
  body.light .content-area {
    color: #333;
    padding-top: 0px;
  }
  
  /* Dark Theme */
  body.dark .sidebar {
    background-color: #111;
  }
  
  body.dark .sidebar .toggle-section {
    color: #f4f4f4;
  }
  
  body.dark .sidebar .section-content a {
    color: #f4f4f4;
  }
  
  body.dark .sidebar .section-content li:hover {
    background-color: #575757;
  }
  
  body.dark .content-area {
    color: #f4f4f4;
  }
  
.logout-section {
  position: absolute;
  bottom: 20px;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.logout-section li {
  padding: 15px 20px;
  text-align: left;
}

.logout-section a {
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 16px;
  transition: color 0.3s;
}

.logout-section a i {
  margin-right: 10px;
  font-size: 18px;
}

.logout-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 16px;
  transition: color 0.3s;
  padding: 15px 20px;
}