/**
* Template Name: NiceAdmin
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Updated: Apr 20 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background: #f6f9ff;
  color: #444444;
}

.delete-button {
  color: red;
}

/* Theme Styles */

/* Dark Theme (backward compatibility with dark-mode) */
body.theme-dark, body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.theme-dark .card, body.dark-mode .card {
    background-color: #1e1e1e;
    border-color: #333;
}

body.theme-dark .header, body.dark-mode .header {
    background-color: #1a1a1a;
    border-color: #333;
}

body.theme-dark .sidebar, body.dark-mode .sidebar {
    background-color: #1a1a1a;
    border-color: #333;
}

body.theme-dark .mobile-nav-bar, body.dark-mode .mobile-nav-bar {
    background-color: #1a1a1a;
}

body.theme-dark .mobile-sidebar-nav a, body.dark-mode .mobile-sidebar-nav a {
    color: #e0e0e0;
}

body.theme-dark .mobile-sidebar-nav a:hover, body.dark-mode .mobile-sidebar-nav a:hover {
    background-color: #2c2c2c;
    color: #fff;
}

body.theme-dark .sidebar-nav .nav-link, body.dark-mode .sidebar-nav .nav-link {
    color: #e0e0e0;
}

body.theme-dark .sidebar-nav .nav-link:hover, body.dark-mode .sidebar-nav .nav-link:hover {
    background-color: #2c2c2c;
}

body.theme-dark .sidebar-nav .nav-link.active, body.dark-mode .sidebar-nav .nav-link.active {
    background-color: #2c2c2c;
}

body.theme-dark .table, body.dark-mode .table {
    color: #e0e0e0;
}

body.theme-dark .table-striped > tbody > tr:nth-of-type(odd), body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #2c2c2c;
}

body.theme-dark .table-hover tbody tr:hover, body.dark-mode .table-hover tbody tr:hover {
    background-color: #333;
}

body.theme-dark .form-control, body.theme-dark .form-select,
body.dark-mode .form-control, body.dark-mode .form-select {
    background-color: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}

body.theme-dark .form-control:focus, body.theme-dark .form-select:focus,
body.dark-mode .form-control:focus, body.dark-mode .form-select:focus {
    background-color: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.theme-dark .btn-light, body.dark-mode .btn-light {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.theme-dark .btn-light:hover, body.dark-mode .btn-light:hover {
    background-color: #444;
    border-color: #555;
}

body.theme-dark .dropdown-menu, body.dark-mode .dropdown-menu {
    background-color: #1e1e1e;
    border-color: #333;
}

body.theme-dark .dropdown-item, body.dark-mode .dropdown-item {
    color: #e0e0e0;
}

body.theme-dark .dropdown-item:hover, body.theme-dark .dropdown-item:focus,
body.dark-mode .dropdown-item:hover, body.dark-mode .dropdown-item:focus {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

body.theme-dark .modal-content, body.dark-mode .modal-content {
    background-color: #1e1e1e;
    border-color: #333;
}

body.theme-dark .modal-header, body.theme-dark .modal-footer,
body.dark-mode .modal-header, body.dark-mode .modal-footer {
    border-color: #333;
}

/* Fix for modals on mobile devices in dark mode */
@media (max-width: 767.98px) {
    body.theme-dark .modal, body.dark-mode .modal {
        z-index: 100000; /* Ensure modal is above all other elements */
    }

    body.theme-dark .modal-backdrop, body.dark-mode .modal-backdrop {
        z-index: 99999; /* Ensure backdrop is above other elements but below modal */
    }

    body.theme-dark .modal-content, body.dark-mode .modal-content {
        background-color: #2c2c2c; /* Lighter background for better visibility */
    }

    body.theme-dark .modal-backdrop.show, body.dark-mode .modal-backdrop.show {
        opacity: 0.3; /* Reduced opacity for better visibility */
    }

    body.theme-dark .modal input,
    body.theme-dark .modal textarea, 
    body.theme-dark .modal select,
    body.theme-dark .modal .form-control,
    body.theme-dark .modal .form-select,
    body.dark-mode .modal input,
    body.dark-mode .modal textarea,
    body.dark-mode .modal select,
    body.dark-mode .modal .form-control,
    body.dark-mode .modal .form-select {
        background-color: #3a3a3a; /* Lighter background for form elements */
        border-color: #555;
        color: #fff;
    }

    body.theme-dark .modal input:focus,
    body.theme-dark .modal textarea:focus, 
    body.theme-dark .modal select:focus,
    body.theme-dark .modal .form-control:focus,
    body.theme-dark .modal .form-select:focus,
    body.dark-mode .modal input:focus,
    body.dark-mode .modal textarea:focus,
    body.dark-mode .modal select:focus,
    body.dark-mode .modal .form-control:focus,
    body.dark-mode .modal .form-select:focus {
        background-color: #444;
        border-color: #777;
        color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    }
}

body.theme-dark .nav-tabs, body.dark-mode .nav-tabs {
    border-color: #333;
}

body.theme-dark .nav-tabs .nav-link.active, body.dark-mode .nav-tabs .nav-link.active {
    background-color: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

body.theme-dark .nav-tabs .nav-link:hover, body.dark-mode .nav-tabs .nav-link:hover {
    border-color: #444;
}

/* Additional dark mode text styles */
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3,
body.theme-dark h4, body.theme-dark h5, body.theme-dark h6,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #e0e0e0;
}

body.theme-dark a, body.dark-mode a {
    color: #81a4ff;
}

body.theme-dark a:hover, body.dark-mode a:hover {
    color: #a3bbff;
}

body.theme-dark .pagetitle h1, body.dark-mode .pagetitle h1 {
    color: #e0e0e0;
}

body.theme-dark .card-title, body.dark-mode .card-title {
    color: #e0e0e0;
}

body.theme-dark .logo span, body.dark-mode .logo span {
    color: #e0e0e0;
}

body.theme-dark .header .toggle-sidebar-btn, body.dark-mode .header .toggle-sidebar-btn {
    color: #e0e0e0;
}

body.theme-dark .header-nav .nav-icon, body.dark-mode .header-nav .nav-icon {
    color: #e0e0e0;
}

body.theme-dark .header-nav .nav-profile, body.dark-mode .header-nav .nav-profile {
    color: #e0e0e0;
}

body.theme-dark .header-nav .profile .dropdown-header h6, body.dark-mode .header-nav .profile .dropdown-header h6 {
    color: #e0e0e0;
}

body.theme-dark .sidebar-nav .nav-heading, body.dark-mode .sidebar-nav .nav-heading {
    color: #a0a0a0;
}

body.theme-dark .sidebar-nav .nav-content a, body.dark-mode .sidebar-nav .nav-content a {
    color: #c0c0c0;
}

body.theme-dark .sidebar-nav .nav-link.collapsed, body.dark-mode .sidebar-nav .nav-link.collapsed {
    color: #c0c0c0;
}

body.theme-dark .sidebar-nav .nav-link.collapsed i, body.dark-mode .sidebar-nav .nav-link.collapsed i {
    color: #a0a0a0;
}

body.theme-dark .breadcrumb, body.dark-mode .breadcrumb {
    color: #a0a0a0;
}

body.theme-dark .breadcrumb a, body.dark-mode .breadcrumb a {
    color: #a0a0a0;
}

body.theme-dark .breadcrumb .active, body.dark-mode .breadcrumb .active {
    color: #e0e0e0;
}

body.theme-dark .dashboard .info-card h6, body.dark-mode .dashboard .info-card h6 {
    color: #e0e0e0;
}

body.theme-dark .dashboard .news h4 a, body.dark-mode .dashboard .news h4 a {
    color: #e0e0e0;
}

body.theme-dark .dashboard .news p, body.dark-mode .dashboard .news p {
    color: #a0a0a0;
}

body.theme-dark .profile .profile-card h2, body.dark-mode .profile .profile-card h2 {
    color: #e0e0e0;
}

body.theme-dark .profile .profile-overview .label, body.dark-mode .profile .profile-overview .label {
    color: #b0b0b0;
}

body.theme-dark .profile .profile-edit label, body.dark-mode .profile .profile-edit label {
    color: #b0b0b0;
}

body.theme-dark .footer .copyright, body.dark-mode .footer .copyright,
body.theme-dark .footer .credits, body.dark-mode .footer .credits {
    color: #a0a0a0;
}

/* Blue Theme */
body.theme-blue {
    background-color: #f0f8ff;
    color: #0a3d62;
}

body.theme-blue .card {
    background-color: #ffffff;
    border-color: #b3d4fc;
    box-shadow: 0 0 10px rgba(0, 0, 150, 0.1);
}

body.theme-blue .header {
    background-color: #0a3d62;
    border-color: #0c2461;
    color: #ffffff;
}

body.theme-blue .sidebar {
    background-color: #1e3799;
    border-color: #0c2461;
}

body.theme-blue .sidebar-nav .nav-link {
    color: #e8f1ff;
}

body.theme-blue .sidebar-nav .nav-link:hover {
    background-color: #4a69bd;
}

body.theme-blue .sidebar-nav .nav-link.active {
    background-color: #4a69bd;
    color: #ffffff;
}

body.theme-blue .btn-primary {
    background-color: #1e3799;
    border-color: #0c2461;
}

body.theme-blue .btn-primary:hover {
    background-color: #4a69bd;
    border-color: #1e3799;
}

body.theme-blue .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #e8f1ff;
}

body.theme-blue .table-hover tbody tr:hover {
    background-color: #d0e1f9;
}

/* Green Theme */
body.theme-green {
    background-color: #f0fff0;
    color: #1e5631;
}

body.theme-green .card {
    background-color: #ffffff;
    border-color: #b3fcb3;
    box-shadow: 0 0 10px rgba(0, 150, 0, 0.1);
}

body.theme-green .header {
    background-color: #1e5631;
    border-color: #0c4620;
    color: #ffffff;
}

body.theme-green .sidebar {
    background-color: #2d8659;
    border-color: #0c4620;
}

body.theme-green .sidebar-nav .nav-link {
    color: #e8fff0;
}

body.theme-green .sidebar-nav .nav-link:hover {
    background-color: #3cb371;
}

body.theme-green .sidebar-nav .nav-link.active {
    background-color: #3cb371;
    color: #ffffff;
}

body.theme-green .btn-primary {
    background-color: #2d8659;
    border-color: #0c4620;
}

body.theme-green .btn-primary:hover {
    background-color: #3cb371;
    border-color: #2d8659;
}

body.theme-green .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #e8fff0;
}

body.theme-green .table-hover tbody tr:hover {
    background-color: #d0f9d0;
}

a {
  color: #4154f1;
  text-decoration: none;
}

a:hover {
  color: #717ff5;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
    margin-top: 20px;
  padding: 20px 30px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: #2F4858;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #4154f1;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #798eb3;
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: #2F4858;
  font-family: "Poppins", sans-serif;
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 0 20px 20px 20px;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #2F4858;
  background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #4154f1;
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: #4154f1;
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: #4154f1;
  border-bottom: 2px solid #4154f1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 26px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #2F4858;
  font-family: "Nunito", sans-serif;
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
  padding-left: 20px;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: #2F4858;
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: #2F4858;
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: #2F4858;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #2F4858;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #2F4858;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
    top: 0; /* Reduced from 60px since header was removed */
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Frosty glass effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
}

/* Desktop Sidebar Restore Button */
.desktop-sidebar-restore {
    display: none;
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: #4154f1;
    color: white;
    width: 30px;
    height: 50px;
    border-radius: 0 4px 4px 0;
    z-index: 995;
    cursor: pointer;
    box-shadow: 0px 0px 15px rgba(1, 41, 112, 0.1);
    align-items: center;
    justify-content: center;
}

.desktop-sidebar-restore i {
    font-size: 20px;
}

/* Only show the restore button when sidebar is collapsed on desktop */
@media (min-width: 1200px) {
    .toggle-sidebar .desktop-sidebar-restore {
        display: flex;
    }
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

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

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

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #4154f1;
    transition: all 0.3s;
  background: #f6f9ff;
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: #4154f1;
}

.sidebar-nav .nav-link.collapsed {
  color: #2F4858;
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: #899bbd;
}

.sidebar-nav .nav-link:hover {
  color: #4154f1;
  background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
  color: #4154f1;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #2F4858;
  padding: 10px 0 10px 40px;
    transition: all 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #4154f1;
}

.sidebar-nav .nav-content a.active i {
  background-color: #4154f1;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: #4154f1;
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #2F4858;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: #4154f1;
  background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #2F4858;
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: #4154f1;
}

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: #2F4858;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: #2F4858;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: #2F4858;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #4154f1;
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: #4154f1;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #2F4858;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #4154f1;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #4154f1;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #5969f3;
}

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

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

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #4154f1;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2F4858;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #2F4858;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #2F4858;
}

/* Benutzerprofilanzeige für Desktop und Mobile - Placeholder */
/* Styles moved to the end of the file */

/* Mobile Navigationsleiste für kleine Bildschirme */
.mobile-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Frosty glass effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 0 15px;
    transition: height 0.3s ease;
    overflow: hidden;
}

.mobile-nav-bar.expanded {
    height: 300px; /* Expanded height */
    overflow-y: auto;
}

.mobile-nav-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px; /* Fixed height for the buttons row */
}

.mobile-nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2F4858;
    text-decoration: none;
    padding: 5px;
}

.mobile-nav-button i {
    font-size: 24px;
    margin-bottom: 4px;
}

.mobile-nav-button span {
    font-size: 12px;
}

.mobile-nav-button:hover,
.mobile-nav-button.active {
    color: #4154f1;
}

/* Mobile Navigation Expanded Content */
.mobile-nav-expanded {
    padding: 15px;
    display: none;
}

.mobile-nav-bar.expanded .mobile-nav-expanded {
    display: block;
}

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

.mobile-sidebar-nav li {
    margin-bottom: 10px;
}

.mobile-sidebar-nav a {
    display: flex;
    align-items: center;
    color: #2F4858;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.mobile-sidebar-nav a:hover {
    background-color: rgba(65, 84, 241, 0.1);
    color: #4154f1;
}

.mobile-sidebar-nav a i {
    margin-right: 10px;
    font-size: 16px;
}

.mobile-nav-heading {
    font-size: 12px;
    text-transform: uppercase;
    color: #899bbd;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4154f1;
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(65, 84, 241, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active {
    /* Removed rotation to prevent the menu icon from looking like a + sign */
}

.mobile-menu-toggle i {
    font-size: 24px;
}

/* Desktop und Mobile Media Queries */
@media (max-width: 1199px) {
    .sidebar-user-profile {
        display: none !important;
    }

    .sidebar-user-profile-mobile {
        display: block !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Fügt Abstand am unteren Rand hinzu, um Platz für die mobile Navigationsleiste zu schaffen */
    body {
        padding-bottom: 60px;
    }

    .mobile-nav-bar {
        display: block;
    }

    /* Stelle sicher, dass der Toggle-Button über der Navigationsleiste ist */
    .mobile-menu-toggle {
        bottom: 70px;
    }
}

@media (min-width: 1200px) {
    .sidebar-user-profile {
        display: flex !important;
    }

    .sidebar-user-profile-mobile {
        display: none !important;
    }

    .mobile-menu-toggle,
    .mobile-nav-bar {
        display: none;
    }
}

/* Benutzerprofilanzeige für Desktop und Mobile - Komplett überarbeitetes Design */
.sidebar-user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 15px 10px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    border-radius: 12px;
    background-color: rgba(65, 84, 241, 0.08);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    /* Hardcoded height to ensure content visibility */
    min-height: 100px;
}

.sidebar-user-profile:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sidebar-user-profile img.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid #4154f1;
    box-shadow: 0 2px 8px rgba(65, 84, 241, 0.3);
}

.sidebar-user-profile .user-info {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Hardcoded height to ensure content visibility */
    min-height: 100px;
}

.sidebar-user-profile .user-info h6 {
    margin: 0 0 5px 0; /* Reduced bottom margin from 15px to 5px for tighter spacing */
    font-size: 16px; /* Slightly smaller font size for better fit */
    font-weight: 600;
    line-height: 1.3; /* Slightly tighter line height */
    word-wrap: break-word;
    max-width: 100%;
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    /* Hardcoded height to ensure text visibility */
    min-height: 40px; /* Reduced from 50px to 40px */
    /* Ensure text doesn't overflow */
    overflow: visible;
    /* Additional properties to ensure text is always visible */
    display: block;
    padding: 5px 0;
}

.sidebar-user-profile .user-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.sidebar-user-profile .user-link {
    color: #4154f1;
    font-size: 18px;
    padding: 8px;
    transition: all 0.3s;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user-profile .user-link:hover {
    color: #fff;
    background-color: #4154f1;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(65, 84, 241, 0.4);
}

.sidebar-user-profile-mobile {
    display: none;
    padding: 20px;
    margin: 15px 10px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    border-radius: 12px;
    background-color: rgba(65, 84, 241, 0.08);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    /* Hardcoded height to ensure content visibility */
    min-height: 200px;
}

.sidebar-user-profile-mobile:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sidebar-user-profile-mobile .mobile-profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Hardcoded height to ensure content visibility */
    min-height: 180px;
}

.sidebar-user-profile-mobile img.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid #4154f1;
    box-shadow: 0 2px 8px rgba(65, 84, 241, 0.3);
}

.sidebar-user-profile-mobile .user-info {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Hardcoded height to ensure content visibility */
    min-height: 100px;
}

.sidebar-user-profile-mobile .user-info h6 {
    margin: 0 0 5px 0; /* Reduced bottom margin from 15px to 5px for tighter spacing */
    font-size: 16px; /* Slightly smaller font size for better fit */
    font-weight: 600;
    line-height: 1.3; /* Slightly tighter line height */
    word-wrap: break-word;
    max-width: 100%;
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    /* Hardcoded height to ensure text visibility */
    min-height: 40px; /* Reduced from 50px to 40px */
    /* Ensure text doesn't overflow */
    overflow: visible;
    /* Additional properties to ensure text is always visible */
    display: block;
    padding: 5px 0;
}

.sidebar-user-profile-mobile .user-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.sidebar-user-profile-mobile .user-link {
    color: #4154f1;
    font-size: 18px;
    padding: 8px;
    transition: all 0.3s;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user-profile-mobile .user-link:hover {
    color: #fff;
    background-color: #4154f1;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(65, 84, 241, 0.4);
}

/* Desktop und Mobile Media Queries */
@media (max-width: 1199px) {
    .sidebar-user-profile {
        display: none;
    }

    .sidebar-user-profile-mobile {
        display: block;
    }
}

@media (min-width: 1200px) {
    .sidebar-user-profile {
        display: flex;
    }

    .sidebar-user-profile-mobile {
        display: none;
    }
}
