/* Dark mode THEME */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    color: white;
  }
  
  .container {
    padding: 30px;
    max-width: 1200px;
    margin: auto;
  }
  
  .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1e293b;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
  }
  
  .logo-icon {
    width: 140px;
    height: auto;
  }
  
  .search-bar {
    flex: 1;
    margin: 0 20px;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background-color: #334155;
    color: white;
    outline: none;
  }
  
  .search-bar::placeholder {
    color: #94a3b8;
  }
  
  .settings-button {
    background: none;
    border: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
  }
  

  .sectio-h2-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .filters {
    margin: 20px 0;
    display: flex;
    gap: 12px;
    justify-content: end;
    margin-top: 20px;
  }
  
  .filter-button {
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    background: #334155;
    color: white;
    cursor: pointer;
    font-weight: bold;
  }
  
  .filter-button.active {
    background: #ef4444;
    border: 2px solid #f87171;
  }
  
  .section-title {
    margin-bottom: 20px;
    font-size: 20px;
    justify-content: start;
    display: flex;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
  
  .card {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .card-header img {
    width: 40px;
    height: 40px;
  }
  
  .card-body {
    margin: 15px 0;
  }
  
  .card-body h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
  }
  
  .card-body p {
    font-size: 0.9rem;
    color: #cbd5e1;
  }
  
  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .remove-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #ef4444;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #4b5563;
    transition: .4s;
    border-radius: 34px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  input:checked + .slider {
    background-color: #22c55e;
  }
  
  input:checked + .slider:before {
    transform: translateX(16px);
  }


/* Light mode styling */
body.light-mode {
  background: linear-gradient(to bottom, #f0f4f8, #ffffff);
  color: #1f2937;
}

body {
  transition: background 0.3s ease, color 0.3s ease;
}


body.light-mode .top-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

body.light-mode .card {
  background-color: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

body.light-mode .card p{
  color: #111827;
}

body.light-mode .filter-button {
  background-color: #f3f4f6;
  color: #111827;
}

body.light-mode .filter-button.active {
  background-color: #fb923c;
  color: white;
}


body.light-mode .search-bar {
  background-color: #f3f4f6;
  color: #111827;
  border: 1px solid #d1d5db;
}

/* Responsive Styles for Mobile Devices */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    position: relative;
  }

  .search-bar {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .sectio-h2-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .filters {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .section-title {
    font-size: 18px;
  }

  /* .grid {
    grid-template-columns: 1fr; 
  } */

  .card {
    padding: 16px;
  }

  .card-body h3 {
    font-size: 1rem;
  }

  .card-body p {
    font-size: 0.85rem;
  }

  .remove-btn {
    padding: 4px 10px;
    font-size: 0.85rem;
  }

  .settings-button {
    align-self: flex-end;
    position: absolute;
    top: 3;
  }
}

