   

/* حالت تیره */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    border: 2px solid #e2e8f0;
    font-size: 1.5rem;
    color: #4a6491;
}

.icon-badge {
    position: relative;
    display: inline-block;
    font-size: 24px;
}

.icon-badge .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    font-size: 15px;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    display: none;
}

  /* مودال */
  .modal {
    display: none; /* مخفی به صورت پیشفرض */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .modal.active {
    display: flex;
  }

  .modal-content {
    background: #fff;
    border-radius: 10px;
    width: 700px;
    max-height: 80%;
    overflow-y: auto;
    padding: 20px;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .close-btn {
    cursor: pointer;
    font-size: 20px;
  }

  /* کارت اعلان */
  .notification-item {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: #f9f9f9;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    overflow: hidden;

  }

  .notification-item:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
  }

  .notification-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 10px;
  }

  .notification-icon-card {
    width: 40px;
    height: 40px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
  }

  .notification-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    flex: 1;
  }

  .notification-time {
    font-size: 12px;
    color: #888;
  }

  .notification-message {
    max-height: 0;
    padding: 0 15px;
    font-size: 14px;
    color: #555;
    background: #fff;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .notification-item.active .notification-message {
    max-height: 200px;
    padding: 10px 15px;
  }

  .notification-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #888;
  }

  .notification-item.active .notification-arrow {
    transform: rotate(90deg);
  }
  