/* 
Name                 : MonoCRM – Bootstrap CRM & Project Management Admin Template
Author               : TemplateRise
Url                  : https://www.templaterise.com/template/monocrm-bootstrap-crm-project-management-admin-template
*/

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --dark-theme: #282d3e;
  --dark-body: #3c3f4e;
  --primary: #358aec;
  --bg-white-blue: #dce3fd80;
  --text-color: #1e1e1e;
  --text-active-color: #358aec;
  --dark-text-color: #dadef4;
  --border-color: #ebeef2;
  --dark-border-color: #ffffff1a;
  --main-body-bg: #eeeeee;
  --bg-white: #fff;
  --bg-input: #f8f8f8;
  --input-search-placeholder: #1e1e1e29;
  --icon-color: var(--primary);
  --notification-color: #ff0000;
  --white: #fff;
  --text-blue: var(--primary);
  --grey: #898989;
}

[data-bs-theme="dark"] {
  --bg-color: var(--dark-theme);
  --text-color: var(--white);
  --main-body-bg: var(--dark-body);
  --border-color: var(--dark-border-color);
  --bg-white: var(--dark-theme);
  --bg-input: var(--dark-body);
  --bg-white-blue: var(--dark-body);
  --input-search-placeholder: var(--dark-text-color);
  --icon-color: var(--white);
  --notification-color: var(--white);
  --text-blue: var(--white);
  --primary: var(--dark-body);
}

body {
  font-family: Poppins;
}

ul {
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.text-color {
  color: var(--text-color);
}

.text-blue {
  color: var(--text-blue);
}

.font-size-10 {
  font-size: 0.625rem; /* 10px */
}

.font-size-11 {
  font-size: 0.6875rem; /* 11px */
}

.font-size-12 {
  font-size: 0.75rem; /* 12px */
}

.font-size-13 {
  font-size: 0.8125rem; /* 13px */
}

.font-size-14 {
  font-size: 0.875rem; /* 14px */
}

.font-size-15 {
  font-size: 0.9375rem; /* 15px */
}

.font-size-16 {
  font-size: 1rem; /* 16px */
}

.font-size-17 {
  font-size: 1.0625rem; /* 17px */
}

.font-size-18 {
  font-size: 1.125rem; /* 18px */
}

.font-size-19 {
  font-size: 1.1875rem; /* 19px */
}

.font-size-20 {
  font-size: 1.25rem; /* 20px */
}

.font-size-21 {
  font-size: 1.3125rem; /* 21px */
}

.font-size-22 {
  font-size: 1.375rem; /* 22px */
}

.font-size-23 {
  font-size: 1.4375rem; /* 23px */
}

.font-size-24 {
  font-size: 1.5rem; /* 24px */
}

.font-size-25 {
  font-size: 1.5625rem; /* 25px */
}

.font-size-26 {
  font-size: 1.625rem; /* 26px */
}

.font-size-27 {
  font-size: 1.6875rem; /* 27px */
}

.font-size-28 {
  font-size: 1.75rem; /* 28px */
}

.font-size-29 {
  font-size: 1.8125rem; /* 29px */
}

.font-size-30 {
  font-size: 1.875rem; /* 30px */
}

.font-size-31 {
  font-size: 1.9375rem; /* 31px */
}

.font-size-32 {
  font-size: 2rem; /* 32px */
}

.font-size-33 {
  font-size: 2.0625rem; /* 33px */
}

.font-size-34 {
  font-size: 2.125rem; /* 34px */
}

.font-size-35 {
  font-size: 2.1875rem; /* 35px */
}

.font-size-36 {
  font-size: 2.25rem; /* 36px */
}

.font-size-37 {
  font-size: 2.3125rem; /* 37px */
}

.font-size-38 {
  font-size: 2.375rem; /* 38px */
}

.font-size-39 {
  font-size: 2.4375rem; /* 39px */
}

.font-size-40 {
  font-size: 2.5rem; /* 40px */
}

.font-weight-400 {
  font-weight: 400;
}

.font-weight-500 {
  font-weight: 500;
}

.font-weight-600 {
  font-weight: 600;
}

.font-weight-600 {
  font-weight: 600;
}

.font-weight-700 {
  font-weight: 700;
}

.font-weight-800 {
  font-weight: 800;
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Spinner Animation */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Keyframes for spinning animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Admin content is hidden initially */
#main-wrapper {
  display: none;
}

.sidebar {
  width: 18rem;
  height: 100vh;
  background-color: var(--bg-white);
  box-shadow: 0px 1px 3px 0px #364a630d;
  position: fixed;
  transition: width 0.3s ease;
  border-right: 1px solid var(--border-color);
}

.sidebar-header {
  width: 100%;
  height: 5rem;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-header a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 600;
}

.sidebar-body {
  height: calc(100% - 10%);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
}

.sidebar-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-label {
  font-size: 0.8325rem;
  font-weight: 500;
  line-height: 1.24875rem;
  letter-spacing: 0.05em;
  text-align: left;
  text-underline-position: from-font;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.sidebar-link {
  font-size: 1.025rem;
  font-weight: 500;
  line-height: 1.434375rem;
  text-align: left;
  text-underline-position: from-font;
  text-decoration: none;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.25rem;
  margin-bottom: 0.4rem;
  color: var(--text-color);
  letter-spacing: 0.5px;
}

.sidebar-link p {
  padding: 0;
  margin: 0;
  margin-left: 1.1rem;
  display: flex;
  align-items: center;
  flex: 1;
  color: var(--text-color);
}

.sidebar-link i {
  color: var(--text-color);
}

.right-icon {
  margin-left: auto;
  display: inline-block;
}

.sidebar-submenu {
  padding: 0;
  list-style: none;
  display: none !important;
}

.submenu-link {
  font-size: 1.025rem;
  font-weight: 500;
  line-height: 0.7rem;
  text-align: center;
  text-underline-position: from-font;
  text-decoration: none;
  padding: 1rem 0.8rem;
  display: block;
  border-radius: 0.25rem;
  margin-bottom: 0.1rem;
  color: var(--text-color);
  position: relative;
  display: flex;
}

.submenu-link:hover {
  background-color: #dde1ee38;
  color: var(--primary);
}

.sidebar-link.active,
.sidebar-link.active p,
.sidebar-link.active i {
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
}

.sidebar-link:hover,
.sidebar-link:hover p,
.sidebar-link:hover i {
  background: var(--primary);
  color: #fff !important;
}

.sidebar-submenu.open {
  display: block !important;
}

.right-icon {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.right-icon.rotate {
  transform: rotate(90deg);
}

.collapse-sidebar span,
.menu-toggle span {
  cursor: pointer;
  z-index: 999;
}

.submenu-link.active {
  color: var(--primary);
}

/*   Header */
.header {
  background: var(--bg-white);
  height: 5rem;
  position: fixed;
  left: 18rem;
  top: 0;
  width: calc(100% - 18rem);
  z-index: 10;
  padding: 10px 20px;
  box-shadow: 0px 1px 3px 0px #364a630d;
  border-bottom: 1px solid var(--border-color);
  pointer-events: auto;
}

.content-wrapper {
  width: 100%;
  background-color: var(--main-body-bg);
  margin-left: 18rem;
  margin-top: 5rem;
  transition: width 0.3s ease;
  overflow-x: hidden;
}

.main-content {
  min-height: 630px;
  padding: 20px 15px 0 15px;
}

.profile-img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.user-avatar {
  background-color: #f8f8f8;
  color: #fff;
  font-weight: bold;
  text-align: center;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
}

.auth-avatar {
  background-color: #d6d9f4;
  width: 75px;
  height: 75px;
  border-radius: 50%;
}

.user-profile {
  cursor: pointer;
}

.border-l-none {
  border-left: none !important;
}

.header .dropdown-toggle::after {
  display: none !important;
}

.remove-dropdown-toggle-icon.dropdown-toggle::after {
  display: none !important;
}

.auth-role {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 0.75rem;
  margin-bottom: 0.1rem;
  color: var(--primary) !important;
}

.auth-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 0.9rem;
  color: var(--text-color) !important;
}

.dropdown-menu {
  border-radius: 4px !important;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.search-input,
.input-group-text {
  background-color: var(--bg-input);
}

.search-input {
  padding: 8px 15px 8px 0px;
}

.search-input::placeholder {
  color: var(--input-search-placeholder);
  font-size: 0.75rem;
  font-style: italic;
}

.search-input:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--bs-border-color);
  background-color: var(--bg-input);
}

.search-icon {
  font-size: 0.82rem;
}

.me-2-5 {
  margin-right: 2rem;
}

.notification {
  position: relative;
}

.custom-scrollbar::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 0px;
  background-color: #f5f5f5;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
  background-color: #f5f5f5;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  border-radius: 0px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #cfd3da;
}

.h-380 {
  height: 380px;
}
.scroll-y {
  overflow-y: auto;
}

.timeline {
  list-style: none;
}

.timeline .timeline-panel {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.timeline .timeline-panel .media {
  width: 45px !important;
  height: 45px !important;
  font-size: 18px !important;
  background: #eee;
  border-radius: 12px;
  overflow: hidden;
  font-size: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  align-self: start;
}

.media-body {
  flex: 1;
}

.all-notification {
  display: block;
  padding: 0.7rem;
  text-align: center;
  border-top: 1px solid #babbbf;
  color: #7e7e7e;
  text-decoration: none;
}

.marker {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--notification-color);
  animation: pulse 1s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: 0;
    overflow: hidden;
    display: none;
  }
  .content-wrapper {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 993px) {
  .header {
    left: 0;
    width: 100% !important;
    height: 5rem;
  }
}

.sm-logo {
  display: none;
}

.small-logo-img {
  width: 77px;
  height: 60px;
}

.large-logo-img {
  width: 125px;
  height: auto;
}

.lg-logo img,
.sm-logo img {
  mask-image: none;
  -webkit-mask-image: none;
  mix-blend-mode: multiply;
}

/* Sidebar expanded state */
.sidebar-visible {
  width: 18rem;
  display: block;
  z-index: 9999;
  transition: width 0.3s;
}

/* Sidebar collapsed state */
.sidebar-collapsed {
  width: 5rem;
  transition: width 0.3s;
}

.sidebar.sidebar-collapsed .sidebar-link p {
  display: none;
}

.sidebar.sidebar-collapsed .sidebar-link i {
  text-align: center;
  margin: 0 auto;
}

/* Collapsed sidebar state */
.sidebar-collapsed .lg-logo {
  display: none;
}

.sidebar-collapsed .sm-logo {
  display: block;
}

/* Overlay visible */
.overlay-visible {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: block;
  transition: opacity 0.3s;
}

/* Overlay hidden */
.overlay-hidden {
  display: none;
}

/* Icon rotation */
.icon-rotated {
  transform: rotate(180deg);
  transition: transform 0.3s;
}

/* Icon default */
.icon-default {
  transform: rotate(0deg);
  transition: transform 0.3s;
}

/* Header adjustments */
.header-expanded {
  width: calc(100% - 18rem);
  left: 18rem;
}

.header-collapsed {
  width: calc(100% - 5rem);
  left: 5rem;
}

/* Collapse main content */
.collapse-main-expanded {
  margin-left: 18rem;
  transition: 0.3s;
}

.collapse-main-collapsed {
  margin-left: 5rem;
  transition: 0.3s;
}

.header-nav-item {
  width: 40px;
  height: 40px;
  background-color: var(--bg-white-blue);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--icon-color);
}

.footer {
  background-color: var(--bg-white);
}

.trend-up {
  color: #28a745;
  font-size: 0.875rem;
}

.trend-down {
  color: #dc3545;
  font-size: 0.875rem;
}

.stats-icon {
  width: 50px;
  height: 50px;
  display: flex;
  background-color: var(--bg-white-blue);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  color: var(--icon-color);
}

.stats-value {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.stats-label {
  color: #6c757d;
  font-size: 16px;
  margin: 0;
}

.filter-tabs .btn {
  color: #666;
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  margin-right: 1rem;
}

.filter-tabs .btn.active {
  background: #eef3ff;
  color: #316fea;
  border-radius: 1rem;
}

.tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-right: 0.5rem;
  display: inline-block;
}

.tag-business,
.tag-inprogress {
  background-color: #eef3ff;
  color: #316fea;
}

.tag-meeting,
.tag-completed {
  background-color: #e8f3f0;
  color: #23856d;
}

.tag-creativity,
.tag-review {
  background-color: #ffe9f7;
  color: #e637bf;
}

.tag-crm,
.tag-todo {
  background-color: #fff7e3;
  color: #ffb800;
}

.tag-client,
.tag-open {
  background-color: #ffe9e9;
  color: #ff3b3b;
}

.date {
  color: #999;
  font-size: 0.9rem;
}

.add-ticket {
  color: #316fea;
  border: 1px solid #316fea;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.add-ticket:hover {
  background-color: #eef3ff;
}

.see-more {
  color: #316fea;
  text-decoration: none;
}

.form-check-input {
  border-color: #ddd;
}

.table > :not(caption) > * > * {
  padding: 1rem 0.5rem;
}

.table > tbody > tr > td {
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

.ticket-container .nav-tabs .nav-link {
  color: #666;
  background: none;
  border: 1px solid #dce3fd;
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  border-radius: 1rem;
}

.ticket-container .nav-tabs .nav-link.active {
  background: #eef3ff;
  color: #316fea;
  border-radius: 1rem;
}

.board-header h4 {
  font-size: 1.25rem;
  font-weight: bold;
}

.board-header button {
  border: none !important;
}

.board-header button:focus {
  border: none !important;
}

.board-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  background-color: #f7fafc;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.board-item:hover {
  background-color: #edf2f7;
}

.board-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #2c7a7b;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
}

.board-content h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.board-content small {
  color: #718096;
}

.create-board {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  border: 2px dashed #cbd5e0;
  cursor: pointer;
  text-align: center;
  color: #4a5568;
  transition: all 0.3s ease;
}

.create-board:hover {
  background-color: #f7fafc;
}

.employee-img {
  width: 40px;
  height: 40px;
  background-color: var(--bg-white-blue);
  border-radius: 50%;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: -10px;
  transition: transform 0.2s ease;
  background-color: var(--bg-white-blue);
}

.avatar-stack .avatar:hover {
  transform: translateY(-1px);
}

.avatar-stack .avatar-more {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f0f2f5;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #65676b;
  font-weight: 500;
}

.board-img img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-white-blue);
}

.offcanvas-custom {
  --bs-offcanvas-width: 700px;
}

.file-input-container {
  position: relative;
  display: inline-block;
  width: 100%;
  font-family: Arial, sans-serif;
}

.file-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 8px 12px; */
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  color: #6c757d;
  transition: border-color 0.3s ease;
}

.file-label:hover {
  border-color: #80bdff;
}

.file-name {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 10px;
}

.file-button {
  padding: 7px 12px;
  background-color: #f8f9fa;
  border-left: 1px solid #ced4da;
  color: #6c757d;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 0 4px 4px 0;
}

.file-button:hover {
  background-color: #e9ecef;
}

.form-label {
  font-size: 14px;
}

.custom-placeholder::placeholder {
  color: #75788b;
  font-size: 0.8rem !important;
}

.remove-focus:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--bs-border-color) !important;
}

.filter-btn {
  padding: 0.68rem 1rem;
}
.table th,
.table td {
  white-space: nowrap;
}

/* pagination */
.dt-paging .pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.dt-paging .pagination li {
  display: inline-block;
}

.dt-paging .page-link {
  border-radius: 6px;
  font-size: 14px;
}

.dt-paging .active > .page-link,
.page-link.active {
  z-index: 3;
  color: var(--bs-pagination-active-color);
  background-color: var(--primary) !important;
  border-color: var(--primary);
}

.dt-paging .page-link:focus {
  outline: none;
  box-shadow: none;
}

.dt-search .form-control-sm,
.dt-length .form-select-sm {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--bs-border-color) !important;
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  border-color: transparent !important;
}

.profile-banner {
  height: 200px;
  background-image: url("../../assets/images/p-bg.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 4px;
}
.profile-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid white;
}
.nav-tabs .nav-link.active {
  background-color: var(--primary) !important;
  color: white !important;
  border: none;
  border-radius: 4px;
}
.nav-tabs .nav-link {
  color: var(--text-color);
  border: none;
  padding: 0.5rem 1.5rem;
}
.nav-tabs {
  border-bottom: none;
}
.friend-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-right: 10px;
}
.github {
  background-color: #333;
}
.linkedin {
  background-color: #0077b5;
}
.twitter {
  background-color: #1da1f2;
}

.form-label {
  color: #666;
  font-weight: 500;
}
/* Custom toggle switch */
.form-switch .form-check-input {
  width: 2em;
  height: 1em;
  background-color: #e9ecef;
  border-color: #e9ecef;
}
.form-switch .form-check-input:checked {
  background-color: #4d6fe9;
  border-color: #4d6fe9;
}
.section-title {
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.btn-delete {
  color: #dc3545;
  border-color: #dc3545;
}
.btn-deactivate {
  background-color: #ff5c77;
  border-color: #ff5c77;
}

.btn-deactivate:hover {
  background-color: #ff5c77;
  border-color: #ff5c77;
}

#calendar a {
  color: unset !important;
  text-decoration: none !important;
}

.email-container {
  width: 100%;
}

.email-container .btn-icon {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  color: #5f6368;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-container .btn-icon:hover {
  background-color: #f1f3f4;
}

.email-container .btn-text-icon {
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  color: #5f6368;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.email-container .btn-text-icon:hover {
  background-color: #f1f3f4;
}

.email-container .form-control:focus {
  border-color: #1a73e8;
  outline: 0;
  box-shadow: 0 0 0 1px #1a73e8;
}

.email-container .form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.15em;
  vertical-align: middle;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  border: 1px solid #ccc;
  border-radius: 3px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.email-container .form-check-input:checked {
  background-color: #1a73e8;
  border-color: #1a73e8;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.email-container .form-check-input:focus {
  border-color: #1a73e8;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.25);
}

.email-container .email-sidebar {
  background-color: #ffffff;
  height: 100vh;
  border-right: 1px solid #e9ecef;
  padding: 20px 0;
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  overflow-y: auto;
  z-index: 1;
}

.email-container .sidebar-inner {
  width: 100%;
}

.email-container .compose-btn {
  background-color: #6366f1;
  border: none;
  border-radius: 24px;
  padding: 12px 24px;
  color: white;
  font-weight: 500;
  margin: 0 16px 24px 16px;
  width: calc(100% - 32px);
  text-align: center;
  display: block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.email-container .compose-btn:hover {
  background-color: #5856eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.email-container .nav-item {
  padding: 8px 16px;
  margin: 2px 8px;
  border-radius: 0 24px 24px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #5f6368;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.email-container .nav-item:hover {
  background-color: #f1f3f4;
  color: #5f6368;
  text-decoration: none;
}

.email-container .nav-item.active {
  background-color: #fce8e6;
  color: #d93025;
  font-weight: 500;
}

.email-container .nav-item i {
  width: 20px;
  margin-right: 12px;
}

.email-container .badge-count {
  margin-left: auto;
  background-color: #5f6368;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
}

.email-container .active .badge-count {
  background-color: #d93025;
}

.email-container .labels-section {
  margin-top: 24px;
  padding: 0 16px;
}

.email-container .labels-title {
  font-size: 12px;
  color: #5f6368;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.email-container .label-item {
  display: flex;
  align-items: center;
  padding: 6px 0;
  color: #5f6368;
  text-decoration: none;
  font-size: 14px;
}

.email-container .label-item:hover {
  color: #5f6368;
  text-decoration: none;
}

.email-container .label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 12px;
}

.email-container .email-main-content {
  background-color: #ffffff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.email-container .search-bar {
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
}

.email-container .position-relative {
  position: relative;
}

.email-container .search-input {
  background-color: #f1f3f4;
  border: none;
  border-radius: 8px;
  padding: 12px 16px 12px 48px;
  width: 100%;
  font-size: 14px;
}

.email-container .search-input:focus {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.email-container .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #5f6368;
}

.email-container .toolbar {
  padding: 8px 16px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.email-container .toolbar-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 4px;
  color: #5f6368;
  cursor: pointer;
}

.email-container .toolbar-btn:hover {
  background-color: #f1f3f4;
}

.email-container .email-list-container {
  flex-grow: 1;
  overflow-y: auto;
}

.email-container .email-list {
  overflow-y: auto;
}

.email-container .email-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.email-container .email-item:hover {
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
  z-index: 1;
}

.email-container .email-checkbox {
  margin-right: 12px;
}

.email-container .email-star {
  margin-right: 12px;
  color: #5f6368;
  cursor: pointer;
}

.email-container .email-star.starred {
  color: #fbbc04;
}

.email-container .sender-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.email-container .sender-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: white;
}

.email-container .email-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.email-container .sender-name {
  font-weight: 500;
  color: #202124;
  margin-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-container .email-subject {
  color: #5f6368;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-container .email-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.email-container .email-time {
  color: #5f6368;
  font-size: 12px;
  white-space: nowrap;
}

.email-container .unread-dot {
  width: 8px;
  height: 8px;
  background-color: #1a73e8;
  border-radius: 50%;
}

.email-container .attachment-icon {
  color: #5f6368;
}

.email-container .more-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.email-container .refresh-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 4px;
  color: #5f6368;
  cursor: pointer;
}

.email-container .refresh-btn:hover {
  background-color: #f1f3f4;
}

.email-container .email-view {
  height: 100vh;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.email-container .email-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.email-container .email-actions {
  display: flex;
  gap: 4px;
}

.email-container .email-header {
  margin-bottom: 30px;
  flex-shrink: 0;
}

.email-container .email-header h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
  color: #202124;
}

.email-container .email-sender-info {
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.email-container .email-body {
  line-height: 1.6;
  color: #202124;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  flex-grow: 1;
  overflow-y: auto;
}

.email-container .reply-section {
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
  flex-shrink: 0;
}

.email-container .reply-form {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 16px;
}

.email-container .attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.email-container .attachment-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #f1f3f4;
  border-radius: 20px;
  font-size: 14px;
  color: #5f6368;
}

.email-container .attachment-item i {
  margin-right: 8px;
}

.email-container .btn-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #5f6368;
  opacity: 0.7;
  padding: 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
  border-radius: 50%;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.email-container .btn-close:hover {
  opacity: 1;
  background-color: #f1f3f4;
}

.compose .form-group {
  margin-bottom: 1rem;
}

.compose .form-group:last-of-type {
  margin-bottom: 0;
}

.compose .message-body-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.compose .message-body-group textarea {
  flex-grow: 1;
  min-height: 150px;
}

.email-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1050;
}

/* ============ RESPONSIVE STYLES ============ */
@media (min-width: 1025px) {
  .email-container .hamburger-menu {
    display: none;
  }
}

@media (max-width: 1024px) {
  .email-container .email-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1051;
    border-right: 1px solid #e9ecef;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .email-container .email-sidebar.show {
    transform: translateX(0%);
  }

  .email-container .email-main-content {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 60px);
  }

  .email-container .hamburger-menu {
    display: block;
    font-size: 24px;
    color: #5f6368;
    cursor: pointer;
    z-index: 101;
    background: none;
    border: none;
    padding: 0;
  }

  .email-container .compose-btn {
    width: calc(100% - 32px);
    margin: 20px 16px;
  }

  .email-container .nav-item {
    margin: 2px 16px;
    border-radius: 24px;
  }

  .email-container .labels-section {
    padding: 0 16px;
  }

  .email-container .email-item {
    flex-wrap: wrap;
    padding: 10px;
  }

  .email-container .email-checkbox,
  .email-container .email-star,
  .email-container .sender-avatar,
  .email-container .sender-initial {
    margin-right: 8px;
  }

  .email-container .email-content {
    flex-basis: 100%;
    margin-top: 8px;
  }

  .email-container .email-meta {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }

  .email-container .email-view {
    padding: 15px;
  }

  .email-container .email-view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .email-container .email-actions {
    width: 100%;
  }

  .email-container .email-header h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .email-container .email-sender-info {
    padding: 10px;
  }

  .email-container .email-body {
    padding: 15px;
    margin-bottom: 20px;
  }

  .email-container .reply-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .email-container .reply-buttons .btn {
    flex-grow: 1;
  }

  .email-container .modal-dialog {
    width: 95%;
    margin: 10px auto;
    max-height: 95vh;
  }
}

/*  Error page */

.error-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 50px;
  max-width: 600px;
  width: 100%;
  text-align: center;
}
.error-container h1 {
  font-size: 8rem;
  font-weight: 900;
  color: #e74c3c;
  margin-bottom: 20px;
  line-height: 1;
}
.error-container h2 {
  color: #34495e;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 2.5rem;
}
.error-container p {
  color: #7f8c8d;
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.btn-primary {
  background-color: #3498db;
  border-color: #3498db;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

/* Board page */

.project-header {
  background: white;
  border-bottom: 1px solid #dfe1e6;
  padding: 1.5rem 0;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #172b4d;
  margin: 0;
}

.project-key {
  color: #5e6c84;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.board-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  font-size: 0.9rem;
}

.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5e6c84;
}

.filter-btn,
.create-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #dfe1e6;
  background: white;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-btn {
  background: #0052cc;
  color: white;
  border-color: #0052cc;
}

.create-btn:hover {
  background: #0747a6;
}

.kanban-container {
  padding: 0;
  overflow-x: auto;
}

.kanban-board {
  display: flex;
  gap: 1rem;
  min-width: 1200px;
  padding-bottom: 1rem;
}

.kanban-column {
  flex: 0 0 280px;
  background: #f4f5f7;
  border-radius: 8px;
  max-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

.column-header {
  padding: 1rem;
  background: #ebecf0;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #dfe1e6;
}

.column-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5e6c84;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.column-count {
  background: #dfe1e6;
  color: #5e6c84;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.column-body {
  flex: 1;
  padding: 0.5rem;
  overflow-y: auto;
}

.issue-card {
  background: white;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: grab;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.issue-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.issue-card.dragging {
  opacity: 0.6;
  transform: rotate(2deg) scale(1.02);
  cursor: grabbing;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.issue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.issue-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.issue-type-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.issue-type-story .issue-type-icon {
  color: #36b37e;
}

.issue-type-task .issue-type-icon {
  color: #0052cc;
}

.issue-type-bug .issue-type-icon {
  color: #de350b;
}

.issue-type-epic .issue-type-icon {
  color: #6554c0;
}

.issue-key {
  font-size: 0.8rem;
  color: #5e6c84;
  font-weight: 500;
}

.priority-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.priority-highest {
  color: #de350b;
}

.priority-high {
  color: #ff5630;
}

.priority-medium {
  color: #ff8b00;
}

.priority-low {
  color: #36b37e;
}

.priority-lowest {
  color: #57d9a3;
}

.issue-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #172b4d;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  cursor: pointer;
}

.issue-title:hover {
  color: #0052cc;
}

.issue-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.issue-label {
  background: #dfe1e6;
  color: #5e6c84;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.issue-label.frontend {
  background: #e3fcef;
  color: #006644;
}

.issue-label.backend {
  background: #deebff;
  color: #0747a6;
}

.issue-label.urgent {
  background: #ffebe6;
  color: #bf2600;
}

.issue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.issue-assignee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.assignee-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0052cc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
}

.story-points {
  background: #f4f5f7;
  color: #5e6c84;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.drop-zone {
  min-height: 100px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.drop-zone.drag-over {
  background: #deebff;
  border: 2px dashed #0052cc;
}

.add-issue-btn {
  width: 100%;
  padding: 0.75rem;
  border: 1px dashed #c1c7d0;
  background: transparent;
  color: #5e6c84;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.add-issue-btn:hover {
  border-color: #0052cc;
  color: #0052cc;
  background: #deebff;
}

.modal-content {
  border: none;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  background: #f4f5f7;
  border-bottom: 1px solid #dfe1e6;
  padding: 1.5rem;
  border-radius: 8px 8px 0 0;
}

.modal-title {
  font-weight: 600;
  color: #172b4d;
  font-size: 1.25rem;
}

.form-label {
  font-weight: 500;
  color: #172b4d;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #dfe1e6;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #0052cc;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.btn-primary {
  background: #0052cc;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #0747a6;
}

.btn-secondary {
  background: #f4f5f7;
  color: #5e6c84;
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.sprint-info {
  background: #e3fcef;
  border: 1px solid #abf5d1;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.sprint-name {
  font-weight: 600;
  color: #006644;
}

@media (max-width: 768px) {
  .kanban-container {
    padding: 0 0.5rem;
  }

  .kanban-column {
    flex: 0 0 260px;
  }

  .board-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .search-box {
    max-width: none;
  }
}

/* Auth pages  */
.auth-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 450px;
  width: 100%;
  text-align: center;
}
.auth-card .logo {
  margin-bottom: 25px;
}
.auth-card .logo img {
  max-width: 120px;
  height: auto;
}
.auth-card h2 {
  color: #34495e;
  font-weight: 700;
  margin-bottom: 10px;
}
.auth-card p.text-muted {
  color: #7f8c8d;
  margin-bottom: 30px;
}

.form-control {
  border-radius: 8px;
  border: 1px solid #e0e6ed;
}

.custom-form-control {
  padding: 12px 15px;
}

.form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}
.btn-primary {
  background-color: #3498db;
  border-color: #3498db;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}
.link-text a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}
.link-text a:hover {
  text-decoration: underline;
}

/* Project pages */

/* Custom progress bar */
.progress-custom {
  height: 12px;
}

/* Timeline styles */
.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #dee2e6;
}

.timeline-dot.completed {
  background-color: #198754;
}

.timeline-dot.current {
  background-color: #0d6efd;
  animation: pulse 2s infinite;
}

.timeline-dot.pending {
  background-color: #adb5bd;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

/* Status badges */
.status-active {
  background-color: #d1e7dd;
  color: #0f5132;
}

.status-high-priority {
  background-color: #f8d7da;
  color: #842029;
}

.task-completed {
  text-decoration: line-through;
}

/* Team member status dots */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-online {
  background-color: #198754;
}

.status-away {
  background-color: #ffc107;
}

.status-offline {
  background-color: #6c757d;
}

/* File type icons */
.file-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-pdf {
  background-color: #fee2e2;
  color: #dc2626;
}

.file-image {
  background-color: #dbeafe;
  color: #2563eb;
}

.file-excel {
  background-color: #dcfce7;
  color: #16a34a;
}

.project-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.3em 0.6em;
  border-radius: 20px;
}

.badge-active {
  background-color: #d1fae5;
  color: #065f46;
}
.badge-inprogress {
  background-color: #e0f2fe;
  color: #0369a1;
}
.badge-planning {
  background-color: #fef9c3;
  color: #92400e;
}
.badge-completed {
  background-color: #e5e7eb;
  color: #4b5563;
}
.badge-onhold {
  background-color: #fee2e2;
  color: #b91c1c;
}

.progress {
  height: 6px;
  margin-top: 5px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group img:not(:first-child) {
  margin-left: -10px;
}

.dropdown-toggle::after {
  display: none;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.custom-radio .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(65, 161, 65, 0.6);
}

.custom-radio .form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(65, 161, 65, 0.5);
}

.custom-switch .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(65, 161, 65, 0.6);
}

.custom-switch .form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(65, 161, 65, 0.5);
}

.custom-switch .form-check-input {
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.custom-checkbox {
  position: relative;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  line-height: 0;
  margin: 0 0.1em 0 0;
  outline: 0;
  padding: 0 !important;
  height: 15px;
  width: 15px;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0.5;
  background: var(--grey);
  color: var(--grey);
}

.custom-checkbox:hover {
  opacity: 1;
}

.custom-checkbox:checked {
  background-color: var(--primary);
  opacity: 1;
  color: #fff;
}

.custom-checkbox::before {
  content: "";
  position: absolute;
  right: 50%;
  top: 50%;
  width: 4px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  margin: -1px -1px 0 -1px;
  transform: rotate(45deg) translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
}

.custom-checkbox:checked::before {
  opacity: 1;
}

.min-h-150 {
  min-height: 300px;
}

.ql-editor {
  min-height: 120px;
}

.file-upload-container {
  width: 100%;
  margin: auto;
}

.dropzone {
  border: 2px dashed #d3d3d3;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s;
  background: #f5ffff;
}

.dropzone:hover {
  border-color: var(--primary);
}

.file-upload-container .icon {
  font-size: 2rem;
  color: var(--primary);
}

#browseButton {
  background-color: var(--primary);
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.preview-grid .preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid #d3d3d3;
}

.preview-grid .preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-grid .preview-item .actions {
  position: absolute;
  bottom: 5px;
  right: 5px;
  display: flex;
  gap: 5px;
}

.preview-grid .preview-item .actions button {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.preview-grid .preview-item .actions button:hover {
  background: var(--primary);
  color: #fff;
}

.image-preview {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  margin-top: 4px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 40px;
}
.select2-container .select2-selection--single {
  height: 40px;
}

.select2-container .select2-selection--multiple {
  min-height: 40px;
}

.select2-container .select2-search--inline .select2-search__field {
  margin-top: 8px;
  margin-left: 10px;
  height: 23px;
}

.ck-content {
  min-height: 160px;
}
