* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.todo-list {
  margin: 15px auto;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 0%);
  width: 100%;
  position: relative;
}

.todo-list-body {
  padding: 20px;
  margin-left: 15px;
}

.todo-list-body::before {
  content: "";
  height: 60%;
  width: 5px;
  border-radius: 50px;
  display: block;
  position: absolute;
  left: 0px;
  background: #017bc1;
}

.todo-list h2 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: 1px;
}

.todo-list p {
  font-size: 15px;
}

.todo-list h2,
.todo-list p {
  color: #000;
}

.select2-container--default .select2-search--inline .select2-search__field {
  width: 100% !important;
}

#exampleModal .select2-container {
  width: 100% !important;
}

.annouce_num_notify {
  background: #c10f0f !important;
  color: white !important;
  height: 20px !important;
  width: 20px !important;
  display: inline-block !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  line-height: 20px;
  text-align: center;
  /* position: absolute;
left: -40px;
top: -2px; */
}

/* .todo-list h2{
    text-transform: capitalize;
} */

/* --------------------------------pagination */

/* Button styling starts*/

.todo-list-body {
  position: relative;
}

.todo-list-body button {
  width: 35px;
  padding: 0px;
  height: 35px;
  border-radius: 100%;
  line-height: 31px;
  text-align: center;
  position: absolute;
  right: 20px;
  top: 20px;
  background: #e54040;
  border: none;
  transition: 0.3s;
}

.todo-list-body button:hover {
  opacity: 0.9;
}

/* Button styling Finish */

button.ld-annce-frnt-btn {
  background: #074b79;
  border: none;
  color: #fff;
  text-decoration: none;
  text-shadow: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 5px;
  padding: 8px 20px;
  transition: 0.3s;
  box-shadow: none !important;
  margin: 0px 0 0;
  cursor: pointer;
}

button.ld-annce-frnt-btn:hover {
  opacity: 0.9;
}

.ld-annce-frnt {
  position: fixed;
  left: 0px;
  right: 0px;
  top: 70px;
  bottom: 20px;
  background: #fff;
  padding: 0 30px 30px;
  box-sizing: border-box;
  border-radius: 20px;
  box-shadow: 0px 0px 8px 0px #a9a9a9;
  display: none;
  z-index: 9999;
  max-width: 900px;
  margin: 0 auto;
  width: 96%;
  overflow-y: auto;
  min-height: 500px;
}

.ld-annce-frnt::-webkit-scrollbar {
  width: 5px;
}

.ld-annce-frnt::-webkit-scrollbar-track {
  background: #fff;
  margin: 30px 0;
}

.ld-annce-frnt::-webkit-scrollbar-thumb {
  background: #888;
}

.ld-annce-frnt .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  position: sticky;
  top: 0px;
  background: #fff;
  z-index: 9999999;
}

.ld-annce-frnt .modal-header .btn-close {
  background: #e54040;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  padding: 0px;
  margin: -22px -20px 0 0;
}

.ld-annce-frnt .modal-header h5.modal-title {
  margin: 0px;
  color: #074b79;
  font-size: 28px;
  line-height: 32px;
  font-weight: 600;
}

.ld-annce-frnt .modal-header .btn-close:hover {
  opacity: 0.9;
}

.ld-annce-frnt .modal-body label {
  font-size: 13px;
  font-weight: 700;
  color: #5f5f5f;
  margin: 0px 0 5px 0;
  display: block;
}

.ld-annce-frnt .modal.fade {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.ld-annce-frnt .modal-body input#announcement_title_frontend {
  width: 100%;
  border: 1px solid #eee;
  padding: 10px;
  margin-bottom: 20px;
  background: #fafafa;
  box-shadow: none !important;
  outline: none !important;
}

.ld-annce-frnt .modal-body input#announcement_title_frontend:focus,
.ld-annce-frnt .modal-body input#announcement_title_frontend:active {
  border: 1px solid #eee !important;
}

.form-group.cs-txt-flex textarea {
  border: 1px solid #eee;
  background: #fafafa;
  box-shadow: none !important;
  outline: none !important;
  display: block;
  width: 100%;
}

.ld-annce-frnt .modal-footer button {
  background: #074b79;
  border: 1px solid #eee;
  color: #fff;
  text-decoration: none;
  text-shadow: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 5px;
  padding: 7px 20px;
  transition: 0.3s;
  box-shadow: none !important;
  margin: 0px 0 0;
  cursor: pointer;
}

.ld-annce-frnt .modal-footer button.btn-secondary {
  background-color: #e54040;
  margin-right: 10px;
}

.ld-annce-frnt .modal-footer {
  margin-top: 20px;
}

.ld-annce-frnt .modal-footer button:hover {
  opacity: 0.9;
}

#wp-announcement_title_detail_frontend-wrap textarea {
  height: 170px;
}

.cs-annouce-email {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-gap: 30px;
  text-align: left;
}

.cs-annouce-email input[type="checkbox"] {
  border: 2px solid #8c8f94;
  border-radius: 15px !important;
  background: #fff !important;
  color: #50575e;
  cursor: pointer;
  position: relative;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 20px;
  box-shadow: none;
  margin: 0px;
  appearance: none;
}

.cs-annouce-email input[type="checkbox"]:after {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  top: 3px;
  left: initial;
  right: 3px !important;
  background: #fff !important;
  transition: 0.1s;
  border-radius: 100%;
  border: 2px solid #8c8f94;
  display: inline-block;
  box-sizing: content-box;
}

.cs-annouce-email input[type="checkbox"]:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 5px;
  position: absolute;
  top: 3px;
  left: 3px !important;
  background: #8c8f94 !important;
  transition: 0.1s;
  display: inline-block;
}

.cs-annouce-email input[type="checkbox"]:checked {
  background: #11a0d2 !important;
  border: none;
  outline: none !important;
  box-shadow: none !important;
}

.cs-annouce-email input[type="checkbox"]:checked:before {
  width: 3px;
  height: 7px;
  border-radius: 0px;
  top: 7px;
  left: 8px !important;
  background: #fff !important;
  transition: 0.1s;
  display: inline-block;
}

.cs-annouce-email input[type="checkbox"]:checked:after {
  width: 8px;
  height: 8px;
  top: 4px;
  left: initial;
  right: 5px !important;
  border-color: #fff;
}

.cs-annouce-email #announcement_file {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
}

.cs-annouce-email #announcement_file::file-selector-button {
  background-color: #074b79 !important;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  width: 100px;
  padding: 5px 10px !important;
  border: none !important;
  cursor: pointer;
}

.cs-annouce-email #announcement_file::file-selector-button:hover {
  opacity: 0.9;
}

/*.cs-annouce-email label{
    margin: 0px !important;
}*/

.ld-tab i.fa-bullhorn {
  font-size: 16px;
}

.ld-tab span.fa-bullhorn {
  display: inline-flex;
  align-items: center;
}

.mce-stack-layout-item button:hover,
.mce-btn button:hover,
.mce-window .mce-window-head .mce-close:hover,
.mce-window-head .mce-close .mce-i-remove:hover,
.wp-switch-editor:hover,
.wp-switch-editor:focus {
  background: none !important;
  color: #50575e !important;
}

.wp-switch-editor {
  border-color: #dcdcde !important;
}

.mce-panel.mce-floatpanel {
  z-index: 999999999999 !important;
}

div.mce-fullscreen {
  z-index: 9999999;
}

div.wp-link-input input {
  box-shadow: 0 0 0 transparent;
  border-radius: 4px;
  border: 1px solid #8c8f94;
  background-color: #fff;
  color: #2c3338;
}

div.wp-link-input input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 2px solid transparent;
}

/*Responsive starts*/

@media (max-width: 767px) {
  .ld-annce-frnt .modal-header h5.modal-title {
    font-size: 22px;
  }

  .ld-annce-frnt .modal-header {
    padding-bottom: 20px;
  }
}

@media (max-width: 575px) {
  .ld-annce-frnt {
    padding: 0 20px 30px;
    width: 90%;
  }

  .ld-annce-frnt .modal-footer button {
    font-size: 14px;
  }

  button.ld-annce-frnt-btn {
    font-size: 14px;
  }

  .ld-annce-frnt .modal-header .btn-close {
    width: 25px;
    height: 25px;
    font-size: 16px;
    border-radius: 5px;
    margin: -26px -8px 0 0;
  }

  .cs-annouce-email {
    grid-template-columns: 1fr;
    grid-gap: 0px;
  }

  .ld-annce-frnt .modal-footer button.btn-secondary {
    margin-bottom: 5px;
  }

  .ld-annce-frnt .modal-header {
    padding: 20px 0;
  }
}

/* Notification Icon and Dropdown in Focus Mode - Refined Design v2 */
.ld-announcement-notify-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  margin-left: auto;
  /* Push it to the right, next to the user menu */
  cursor: pointer;
  vertical-align: middle;
}

.ld-announcement-notify-icon {
  font-size: 20px;
  color: #4a5568 !important;
  position: relative;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ld-announcement-notify-icon:hover {
  color: #2d3748 !important;
}

.ld-announcement-notify-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.ld-announcement-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #e53e3e;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 4px;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
}

.ld-announcement-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 420px;
  /* Slightly wider to accommodate description */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  animation: ldFadeInDown 0.3s ease-out;
}

.ld-announcement-dropdown-header {
  padding: 24px 20px 12px;
}

.ld-announcement-dropdown-header h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a2333;
  letter-spacing: -0.5px;
}

.ld-announcement-dropdown-content {
  max-height: 520px;
  overflow-y: auto;
  padding: 0 20px 24px;
}

.ld-announcement-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.ld-announcement-card:last-child {
  margin-bottom: 0;
}

.ld-announcement-card:hover {
  background-color: #f8faff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.ld-announcement-card-icon {
  flex-shrink: 0;
  margin-right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ld-announcement-card-icon .dashicons {
  font-size: 26px;
  width: 26px;
  height: 26px;
  color: #434c5e;
}

.ld-announcement-card-body {
  flex-grow: 1;
  text-align: left;
}

.ld-announcement-item-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a2333;
  margin-bottom: 4px;
  line-height: 1.3;
}

.ld-announcement-item-excerpt {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Added for standard compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ld-announcement-card-action {
  flex-shrink: 0;
  margin-left: 15px;
}

.ld-announcement-close-btn {
  background: transparent;
  color: #ef4444;
  /* Changed to red as requested */
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ld-announcement-close-btn:hover {
  background: #ef2424;
  /* Light red background on hover */
  opacity: 0.8;
}

.ld-announcement-close-btn .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.ld-announcement-no-items {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
}

/* Custom scrollbar */
.ld-announcement-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.ld-announcement-dropdown-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

@keyframes ldFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

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

@media (max-width: 480px) {
  .ld-announcement-dropdown {
    width: calc(100vw - 40px);
    right: -20px;
  }
}

/* Pagination / Show More Styles */
.ld-announcement-load-more-container {
  text-align: center;
  padding-top: 7px;
  margin-top: 10px;
}

.ld-announcement-show-more-btn {
  background: #074b79;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(7, 75, 121, 0.2);
}

.ld-announcement-show-more-btn:hover {
  background: #053a5f;
  box-shadow: 0 6px 14px rgba(7, 75, 121, 0.3);
  transform: translateY(-2px);
}

.ld-announcement-show-more-btn:active {
  transform: translateY(0);
}

/* Announcement Popup Modal Styles */
.ld-announcement-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(4px);
    animation: ldFadeIn 0.3s ease-out;
}

.ld-announcement-modal-container {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: ldSlideUp 0.3s ease-out;
}

.ld-announcement-modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ld-announcement-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a2333;
}

.ld-announcement-modal-close {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-announcement-modal-close:hover {
    background: #e2e8f0;
    color: #1a2333;
}

.ld-announcement-modal-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
}

.ld-announcement-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
}

.ld-announcement-modal-btn {
    background: #074b79;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(7, 75, 121, 0.2);
}

.ld-announcement-modal-btn:hover {
    background: #053a5f;
    box-sizing: border-box;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 75, 121, 0.3);
}

/* Animations */
@keyframes ldFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ldSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Custom scrollbar for modal body */
.ld-announcement-modal-body::-webkit-scrollbar {
    width: 6px;
}

.ld-announcement-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Attachment Button Styles */
.ld-announcement-attachment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569 !important;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ld-announcement-attachment-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a !important;
}

.ld-announcement-attachment-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}