/* ============================
   🔔 Notification System Styles
   ============================ */

/* --- Positionierung & Struktur --- */
#notifWrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Glocken-Button */
#notifDropdownToggle {
  color: #fff;
  font-size: 1.4rem;
  position: relative;
  transition: color 0.25s ease, transform 0.2s ease;
}

#notifDropdownToggle:hover {
  color: var(--bs-warning);
  transform: scale(1.1);
}

#notifDropdownToggle.active i {
  color: var(--bs-warning);
}

/* Zähler (roter Punkt) */
.notif-count {
  position: absolute;
  top: 0px;
  right: -6px;
  background: red;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 50%;
  padding: 2px 6px;
  line-height: 1;
}

/* --- Dropdown-Menü --- */
.notif-menu {
  position: absolute !important;
  top: 110%;
  right: 0;
  min-width: 320px;
  max-width: 90vw;
  background-color: #25254a;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  padding: 0.75rem;
  z-index: 1050;
  display: none;
  opacity: 0;
  transform: scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.notif-menu.show {
  display: block !important;
  opacity: 1;
  transform: scale(1);
}

/* --- Header --- */
.notif-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

.notif-header i {
  color: var(--bs-warning);
  font-size: 1.2rem;
}

/* --- Notification Items --- */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.4rem 0;
  color: #ddd;
}

.notif-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notif-text {
  flex-grow: 1;
  line-height: 1.3;
}

.notif-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.notif-message {
  font-size: 0.9rem;
  color: #ccc;
}

.notif-time {
  font-size: 0.8rem;
  color: #888;
}

/* Trenner */
.notif-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}

/* Kein Inhalt */
.notif-menu .text-center {
  color: #aaa;
  font-size: 0.9rem;
}

/* Footer */
.notif-footer {
  margin-top: 0.75rem;
}

.notif-footer a {
  color: var(--bs-info);
  font-weight: 600;
  text-decoration: none;
}

.notif-footer a:hover {
  text-decoration: underline;
}

/* --- Responsivität --- */
@media (max-width: 768px) {
  #notifDropdownToggle {
    font-size: 1.3rem;
  }

  .notif-menu {
    position: fixed !important;
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    border-radius: 14px;
  }

  .notif-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .notif-title {
    font-size: 1rem;
  }

  .notif-message {
    font-size: 0.9rem;
  }
}

/* --- Popup für neue Notification (optional) --- */
.notification-popup {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #2a2a5a;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  animation: fadeInOut 10s forwards;
  max-width: 300px;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-10px); }
  10%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* ============================
   🔔 Taskmania Notifications
   ============================ */

/* --- Grundlayout --- */
.notif-container {
  max-width: 850px;
  margin: 2rem auto;
  background: #1f1f3b;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  color: #f1f1f1;
  animation: fadeIn 0.4s ease forwards;
}

/* --- Header --- */
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.notif-header-left h2 {
  font-weight: 700;
  color: #fff;
}

.notif-subtitle {
  color: #aaa;
  font-size: 0.95rem;
  margin-top: 4px;
}

.notif-header-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Buttons --- */
.notif-btn {
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  transition: all 0.2s ease;
}

.notif-btn-clear {
  background: var(--bs-success);
  color: #fff;
}

.notif-btn-clear:hover {
  background: #2ea05d;
}

.notif-btn-delete {
  background: var(--bs-danger);
  color: #fff;
}

.notif-btn-delete:hover {
  background: #d63a3a;
}

.notif-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1.2rem 0;
}

/* --- Filter & Suche --- */
.notif-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.notif-search {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: none;
  outline: none;
  background: #2a2a55;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.notif-search::placeholder {
  color: #aaa;
}

.notif-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* --- Notification Cards --- */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notif-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #2a2a55;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.25s ease;
}

.notif-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.notif-card:hover {
  border-color: var(--bs-warning);
  background: #32326a;
}

/* Typabhängige Akzente */
.notif-planned {
  border-left: 4px solid var(--bs-info);
}

.notif-active {
  border-left: 4px solid var(--bs-warning);
}

.notif-default {
  border-left: 4px solid var(--bs-secondary);
}

.notif-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.notif-content {
  flex-grow: 1;
}

.notif-title {
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
}

.notif-message {
  color: #ccc;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.notif-meta {
  font-size: 0.85rem;
  color: #888;
}

/* --- Keine Notifications --- */
.notif-empty {
  text-align: center;
  color: #aaa;
  font-size: 1.1rem;
  padding: 2rem 0;
}

.notif-empty i {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--bs-warning);
}

/* --- Modal Styling --- */
.modal-content.bg-dark {
  background-color: #1f1f3b !important;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.modal-header,
.modal-footer {
  border-color: rgba(255,255,255,0.1);
}

.modal-body p {
  margin: 0;
  color: #ddd;
  font-size: 1rem;
  line-height: 1.4;
}

.modal-body strong {
  color: #fff;
}

.modal-footer .btn {
  font-weight: 600;
  border-radius: 10px;
  padding: 0.5rem 1rem;
}

/* --- Animation --- */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .notif-container {
    margin: 1rem;
    padding: 1.2rem;
  }

  .notif-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .notif-header-right {
    flex-direction: column;
    width: 100%;
  }

  .notif-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .notif-search {
    width: 100%;
  }

  .notif-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .notif-icon {
    font-size: 1.6rem;
  }

  .notif-title {
    font-size: 1rem;
  }

  .notif-message {
    font-size: 0.95rem;
  }
}

/* ============================
   ⚠️ Delete Modal - Elegant & Modern
   ============================ */
.modal-backdrop.show {
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease-in-out;
}

/* Fade + Scale Animation */
.modal.fade .modal-dialog {
  transform: translateY(-15px) scale(0.94);
  opacity: 0;
  transition: all 0.35s ease;
}
.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Modal-Container */
.modal-content.bg-dark {
  background: radial-gradient(circle at top left, #202045 0%, #141428 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 35px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(255, 193, 7, 0.05);
  color: #f1f1f1;
  overflow: hidden;
  animation: modalPop 0.4s ease;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Header */
.modal-header {
  justify-content: center;
  text-align: center;
  border: none;
  padding-top: 1.5rem;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-title i {
  color: var(--bs-warning);
  font-size: 1.4rem;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Body */
.modal-body {
  padding: 1.5rem 2rem 0.5rem;
  text-align: center;
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}

.modal-body strong {
  color: #fff;
}

.modal-body .text-warning {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #ffc107;
  font-weight: 500;
}

/* Footer */
.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem 1.5rem;
}

.modal-footer .btn {
  border-radius: 12px;
  font-weight: 600;
  min-width: 130px;
  padding: 0.6rem 1.2rem;
  transition: all 0.25s ease;
}

/* Secondary Button */
.modal-footer .btn-secondary {
  background: linear-gradient(145deg, #2a2a55, #1c1c3a);
  color: #fff;
  border: none;
}
.modal-footer .btn-secondary:hover {
  background: #35356e;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Danger Button */
.modal-footer .btn-danger {
  background: linear-gradient(145deg, #dc3545, #b02a37);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.modal-footer .btn-danger:hover {
  background: #ff4d4d;
  box-shadow: 0 0 12px rgba(255, 77, 77, 0.4);
}

/* Mobile Anpassung */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 1rem;
  }
  .modal-body {
    padding: 1rem 1rem 0.5rem;
    font-size: 0.95rem;
  }
  .modal-footer {
    flex-direction: column;
    gap: 0.6rem;
  }
  .modal-footer .btn {
    width: 100%;
  }
}
