* {
  box-sizing: border-box;
  outline: none;
}
body {
  margin: 0;
  font-family: 'DM Sans', sans-serif; /* Changed font */
  
  color: #2B3674; /* Added default text color */
}
.dashboard {
  height: 100vh;
  display: flex;
}
/* Old .left, .sidebar, .wrapper, .items, .profile, .menu, .navigation, .abilan, .wrapper2 styles removed */

/* Old .compose, .folders, .folder-icons, .icon-name1, .icon-name, and related active styles removed */
.names {
  margin-left: 10px;
  font-weight: bold;
  font-size: 15px;
}

.avatar > img {
  width: 35px;
  border-radius: 10px;
}
.section1 {
  margin-top: 25px;
  margin-bottom: 10px;
}

/* --- Bootstrap Overrides --- */

/* General Button Style */
.btn {
  border-radius: 0.5rem !important; /* Increased border-radius */
  border: 1px solid transparent; /* Default border */
  padding: 0.5rem 1rem !important; /* Adjusted padding */
  font-weight: 500 !important; /* Match Horizon button weight */
  font-size: 0.875rem !important; /* Slightly smaller font */
  /* position: relative; */ /* Removed, might conflict */
  transition: all 0.2s ease-in-out;
}

/* Primary Button */
.btn-primary {
  background-color: #4318FF !important; /* Horizon primary purple */
  border-color: #4318FF !important;
  color: #FFFFFF !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #6946ff !important; /* Lighter purple on hover */
  border-color: #6946ff !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(67, 24, 255, 0.3) !important; /* Optional shadow */
}

/* Secondary/Outline Button (mimicking Horizon's subtle style) */
.btn-secondary, .btn-outline-secondary, .btn-neutral { /* Assuming btn-neutral is used similarly */
  background-color: #F4F7FE !important; /* Light background */
  border-color: #E0E5F2 !important; /* Light border */
  color: #4318FF !important; /* Purple text */
}
.btn-secondary:hover, .btn-outline-secondary:hover, .btn-neutral:hover,
.btn-secondary:focus, .btn-outline-secondary:focus, .btn-neutral:focus,
.btn-secondary:active, .btn-outline-secondary:active, .btn-neutral:active {
  background-color: #E9EDF7 !important; /* Slightly darker background */
  border-color: #A3AED0 !important; /* Slightly darker border */
  color: #4318FF !important;
  box-shadow: none !important;
}

.buton1 {
  background-color: #f8f1ff;
  color: #a84bfe;
}
.buton2 {
  background-color: #fff1f6;
  color: #fe4b85;
}
.buton3 {
  background-color: #eef0ff;
  color: #2632fe;
}
.buton4 {
  background-color: #ebfbf8;
  color: #01c991;
}
.tag {
  position: absolute;
  left: 8px;
  top: 10px;
}
.plus > img {
  width: 16px;
  height: 16px;
}
.plus {
  left: 10px;
  position: absolute;
}
.buton-span {
  border-radius: 15px;
  padding: 5px 10px;
  border: 1px;
  color: white;
  background-color: #fe365c;
  box-shadow: 0px 0px 10px 2px #f7bfc9;
  margin-left: 70px;
}
.online {
  position: absolute;
  top: -5px;
  right: -5px;
  border: 4px solid #fbfcf8;
  box-sizing: unset;
  background-color: #02c997;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.avatar {
  position: relative;
}
.red {
  background-color: #fe4663;
}

.big-inbox {
  font-size: 1.75rem; /* Adjusted size */
  font-weight: 700; /* Adjusted weight */
  color: #2B3674; /* Ensured color */
}
.right-side {
  background-color: #F4F7FE; /* Changed background */
  width: 100%;
  padding: 30px; /* Increased padding */
  display: flex;
  flex-direction: column;
}
.right-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.top-bar {
  display: flex;
  align-items: center;
  text-align: center;
}
.top-bar-justify {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.top-bar-items {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 180px;
}
.profile2 > img {
  border-radius: 50%;
  width: 28px; /* Corrected from 28x */
  height: 28px;
  border: 2px solid white;
  margin-left: 25px;
  margin-right: 5px;
}
.profile2 {
  display: flex;
  align-items: center;

  width: 120px;
}
.icon-name5 {
  font-size: 13px;
  color: grey;
}
.new-hr {
  border: none; /* Remove default border */
  border-top: 1px solid #E0E5F2; /* Use lighter border-top */
  margin-bottom: 25px;
}
.notif {
  position: relative;
}
.pink {
  background-color: #fe96db;
  width: 7px;
  height: 7px;
  margin: -3px;
}

.checkbox > input {
  width: 20px;
  height: 20px;
}

.right-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.down-arrow > img {
  width: 12px;
  height: 14px;
  margin-bottom: -2px;
  margin-left: 5px;
}
.new:hover {
  background-color: white;
}
.new {
  border-radius: 4px;
  border: none;
  width: 40px;
  height: 30px;
  background-color: #edeef5;
}
.check {
  display: flex;
  align-items: center;
}
.has-search .text {
  padding-left: 30px;
  margin-left: 45px;
}
.form {
  display: flex;
  align-items: center;
}
.searchIcon {
  margin-left: 53px;
  position: absolute;
  margin-top: 2px;
}
.text {
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 280px;
  height: 30px;
  background-color: #edeef5;
}
.buttons {
  display: flex;
}
.middle-buttons {
  display: flex;
}

.scroll-cards {
  width: 370px;
  height: 100%;
  overflow: auto;

  padding: 20px 0px 5px 0px;
}
/* Card Style */
.card {
  background-color: #FFFFFF !important; /* Ensure white background */
  border-radius: 1rem !important; /* Increased border-radius */
  margin-bottom: 1.5rem !important; /* Consistent margin (adjust as needed) */
  padding: 1.5rem !important; /* Consistent padding */
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
  border: none !important; /* Remove default border */
  box-shadow: 0px 4px 12px rgba(112, 126, 174, 0.1) !important; /* Subtle shadow */
}
.card:hover {
  /* box-shadow: 5px 1px 20px 1px #ddd; */ /* Replaced shadow */
  box-shadow: 0px 8px 20px rgba(112, 126, 174, 0.15) !important; /* Slightly stronger shadow on hover */
  transform: translateY(-2px); /* Slight lift effect */
}

.mail-names {
  color: grey;
  font-weight: bold;
  font-size: 15px;
  margin-left: 10px;
}

.mails {
  display: flex;
  align-items: center;
}
.mails > img {
  width: 35px;
  border-radius: 10px;
}
.mail-info {
  margin: 10px 65px;
  margin-left: 0px;
  line-height: 1.7;
  font-weight: 600;
}
.check1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100px;
}
.bottom-info {
  display: flex;
  justify-content: space-between;
}
.date {
  color: grey;
}
.person {
  width: 25px;
  height: 25px;
  border-radius: 10px;
  text-align: center;
  color: white;
  padding: 5px 3px 0px;
}
.border1 {
  background-color: #5f4bfd;
}
.border2 {
  background-color: #e32553;
}
.border3 {
  background-color: #01c828;
}
.message {
  margin: 20px 10px;
  flex: 1;
  background-color: white;
  padding: 25px;
  overflow: auto;
}
.mes-date {
  color: grey;
  font-size: 14px;
}
.who {
  font-weight: 600;
}
.title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 10px;
}

.message-from {
  margin-top: 20px;
  color: grey;
  font-size: 17px;
}
.attachment-last {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 350px;
}
.att-write {
  color: grey;
}
.buton0 {
  background-color: #ecefff;
  color: #7175c0;
}
.buton9 {
  background-color: #e0f8e3;
  color: #79b992;
}

.btn1 {
  border-radius: 3px;
  border: 1px;
  height: 25px;
  font-weight: bold;
}
.inside-img > img {
  width: 100px;
  border-radius: 10px;
  margin-top: 20px;
}
.inside-img > img:hover {
  transform: scale(0.95);
}
.son-buton {
  width: 100px;
  height: 68px;
  border-radius: 10px;
  border: 1px;
  margin-top: 17px;
  background-color: #f5e9f9;
  color: #b79ed8;
  font-weight: 500;
  font-size: 20px;
}
.son-images {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 520px;
}
.btn2 {
  margin-top: 40px;
  border-radius: 3px;
  border: 1px;
  height: 35px;
  padding: 5px 30px;
  color: white;
  position: relative;
}
.butona {
  background-color: #8e44ad;
}
.butonb {
  background-color: #fe4a85;
}
.butona:hover {
  background-color: #892bb4;
}
.butonb:hover {
  background-color: #ec195f;
}
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* --- Table Styles --- */
.table {
  border-color: #E0E5F2 !important; /* Lighter border */
}

.table thead th {
  background-color: #F4F7FE !important; /* Light background for header */
  color: #A3AED0 !important; /* Gray text for header */
  border-bottom-width: 1px !important;
  border-color: #E0E5F2 !important;
  font-weight: 600 !important;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  border-color: #E0E5F2 !important;
}

.table tbody td {
  color: #2B3674; /* Darker text for body */
  vertical-align: middle;
  border-color: #E0E5F2 !important;
}

.table-hover tbody tr:hover {
  background-color: #F4F7FE !important; /* Light hover */
}

/* --- Form Element Styles --- */
.form-control,
.form-select {
  background-color: #FFFFFF !important; /* White background */
  border: 1px solid #E0E5F2 !important; /* Light border */
  border-radius: 0.5rem !important; /* Rounded corners */
  color: #2B3674 !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus,
.form-select:focus {
  border-color: #4318FF !important; /* Purple border on focus */
  box-shadow: 0 0 0 0.2rem rgba(67, 24, 255, 0.15) !important; /* Subtle purple glow */
  background-color: #FFFFFF !important;
}

.form-label {
  color: #A3AED0; /* Gray label text */
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.3rem;
}

.form-check-input {
  border-color: #E0E5F2 !important;
  border-radius: 0.25rem !important;
}

.form-check-input:checked {
  background-color: #4318FF !important; /* Purple background when checked */
  border-color: #4318FF !important;
}

.form-check-input:focus {
   box-shadow: 0 0 0 0.2rem rgba(67, 24, 255, 0.15) !important; /* Subtle purple glow */
}

/* Adjustments for specific elements if needed */
#searchBox {
  /* Specific styles for search box if different */
}
/* --- New Horizon Sidebar Styles --- */
.horizon-sidebar {
  width: 280px; /* Adjust width as needed */
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: #FFFFFF;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 2rem 0 rgba(112, 126, 174, 0.1); /* Subtle shadow */
  z-index: 1000; /* Ensure it's above other content */
  transition: transform 0.3s ease; /* For potential mobile toggle */
}

.sidebar-logo {
  margin-bottom: 1.5rem;
  /* Styles for logo link/image */
}

.sidebar-divider {
  border-top: 1px solid #E0E5F2; /* Light divider */
  margin: 1rem 0;
}

.sidebar-nav {
  padding-left: 0; /* Remove default ul padding */
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem; /* Adjust padding */
  color: #A3AED0; /* Default gray text */
  text-decoration: none;
  border-radius: 0.5rem; /* Rounded corners */
  font-weight: 500;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  position: relative; /* For active indicator */
}

.nav-link i {
  font-size: 1.1rem; /* Adjust icon size */
  width: 24px; /* Ensure consistent icon spacing */
  text-align: center;
}

.nav-link span {
  flex-grow: 1;
}

.nav-link:hover {
  color: #2B3674; /* Darker text on hover */
  background-color: #F4F7FE; /* Light background on hover */
}

.nav-link.active {
  color: #4318FF; /* Purple text for active */
  font-weight: 700; /* Bold active link */
  background-color: transparent; /* No background for active link itself */
}

/* Active link indicator (left border) */
.nav-link.active::before {
  content: '';
  position: absolute;
  left: -1.5rem; /* Position relative to sidebar padding */
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #4318FF; /* Horizon primary purple */
  border-radius: 0 4px 4px 0;
}

/* Adjust right-side margin when sidebar is present */
.right-side.with-sidebar {
  margin-left: 280px; /* Same as sidebar width */
  width: calc(100% - 280px); /* Adjust width */
}


/* --- Scrolling & Padding Adjustments --- */
body {
  /* overflow: hidden; removed to allow body scroll if needed, content areas handle their own */
  padding-bottom: 70px; /* Add padding to prevent content being hidden by bottom nav on mobile */
}

.horizon-sidebar {
  overflow-y: auto; /* Enable vertical scroll */
  /* Existing styles... */
}

.right-side {
  overflow-y: auto; /* Enable vertical scroll */
  padding: 2rem; /* Increased padding */
  /* Existing styles... */
}

/* --- Bottom Navigation (Mobile) --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px; /* Adjust height as needed */
  background-color: #4318FF; /* Purple background */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1050; /* Ensure it's above content */
}

.bottom-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7); /* Lighter purple/white text */
  text-decoration: none;
  font-size: 0.75rem;
  padding: 0.5rem;
  flex-grow: 1;
  text-align: center;
}

.bottom-nav .nav-link i {
  font-size: 1.25rem; /* Icon size */
  margin-bottom: 0.2rem;
}

.bottom-nav .nav-link.active {
  color: #FFFFFF; /* White text for active */
  font-weight: 600;
}

/* --- Responsiveness --- */

/* Apply margin only on large screens (when sidebar is visible) */
@media (min-width: 992px) {
  .right-side.with-sidebar {
    margin-left: 280px; /* Same as sidebar width */
    width: calc(100% - 280px); /* Adjust width */
  }
  body {
     overflow: hidden;
     padding-bottom: 0; /* Remove bottom padding on desktop */
  }
}

/* Hide desktop sidebar and adjust right side on smaller screens */
@media (max-width: 991.98px) {
  .horizon-sidebar {
    display: none; /* Hide desktop sidebar */
  }
  .right-side.with-sidebar {
    margin-left: 0; /* Remove margin */
    width: 100%; /* Full width */
  }
  .dashboard {
     /* Adjust dashboard flex container if needed */
  }
}
/* --- Bottom Navigation (Mobile/Tablet) --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px; /* Adjust height as needed */
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
  backdrop-filter: blur(10px); /* Blur effect */
  -webkit-backdrop-filter: blur(10px); /* Safari */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Top shadow */
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  z-index: 1000; /* Ensure it's above other content */
}

.bottom-nav a.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-decoration: none;
  color: #A3AED0; /* Default icon/text color (Horizon gray) */
  padding: 5px 0;
  transition: color 0.2s ease-in-out;
}

.bottom-nav a.nav-link i {
  font-size: 1.4rem; /* Adjust icon size */
  margin-bottom: 2px;
}

.bottom-nav a.nav-link span {
  font-size: 0.7rem; /* Adjust text size */
  font-weight: 500;
}

.bottom-nav a.nav-link:hover {
  color: #2B3674; /* Darker color on hover */
}

.bottom-nav a.nav-link.active {
  color: #4318FF; /* Horizon primary purple for active link */
}

/* Add padding to main content area when bottom nav is visible */
@media (max-width: 991.98px) { /* Bootstrap breakpoint for < lg */
  .right-side {
    /* Add padding equal to bottom nav height + some buffer */
    padding-bottom: 75px !important; /* 60px height + 15px buffer, use !important to override existing padding */
    /* Ensure content can scroll if needed */
    overflow-y: auto;
    height: 100vh; /* Let it take full height, scrolling handles overflow */
    margin-left: 0 !important; /* Ensure no left margin from sidebar */
    width: 100% !important; /* Ensure full width */
  }
  body {
    overflow: visible;
  }
}

/* Adjust right-side padding and overflow for desktop */
@media (min-width: 992px) {
  .right-side {
    overflow-y: auto; /* Allow scrolling on desktop */
    height: 100vh; /* Full height */
    padding-bottom: 30px !important; /* Reset padding, use !important */
  }
}

/* --- Horizon Sidebar Adjustments --- */
.horizon-sidebar {
  width: 280px; /* Match Horizon theme width */
  background-color: #FFFFFF; /* White background */
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed; /* Keep sidebar fixed */
  left: 0;
  top: 0;
  box-shadow: 4px 0px 12px rgba(112, 126, 174, 0.1); /* Right shadow */
  z-index: 1010; /* Above content, below potential modals */
  transition: transform 0.3s ease; /* Smooth transition if needed later */
}

.sidebar-logo {
  padding: 10px 0;
  margin-bottom: 1rem;
}

.sidebar-logo .text-dark { /* Ensure logo text is dark */
    color: #2B3674 !important;
}

.sidebar-divider {
  border-top: 1px solid #E0E5F2; /* Light divider */
  margin: 1rem 0;
}

.sidebar-nav .nav-item {
  margin-bottom: 0.5rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #A3AED0; /* Default gray color */
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none; /* Remove underline */
}

.sidebar-nav .nav-link i {
  font-size: 1.1rem; /* Adjust icon size */
  width: 20px; /* Ensure consistent icon spacing */
  text-align: center;
  margin-right: 1rem; /* Space between icon and text */
}

.sidebar-nav .nav-link span {
  flex-grow: 1;
}

.sidebar-nav .nav-link:hover {
  background-color: #F4F7FE; /* Light background on hover */
  color: #2B3674; /* Darker text on hover */
}

.sidebar-nav .nav-link.active {
  background-color: #4318FF; /* Purple background for active */
  color: #FFFFFF !important; /* White text for active */
  box-shadow: 0 4px 12px rgba(67, 24, 255, 0.2); /* Subtle shadow for active */
}

.sidebar-nav .nav-link.active i,
.sidebar-nav .nav-link.active span {
  color: #FFFFFF !important; /* Ensure icon and text are white when active */
}

/* Adjust right-side margin when sidebar is present (on lg+) */
.right-side.with-sidebar {
  margin-left: 280px; /* Match sidebar width */
  width: calc(100% - 280px); /* Adjust width */
}

/* Ensure body doesn't scroll */
body {
  overflow: hidden;
}

/* Ensure right-side content area scrolls */
.right-side {
  overflow-y: auto;
  height: 100vh; /* Make sure it takes full viewport height */
}