/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --accent-color: #ff0080;
  --success-color: #00b09b;
  --dark-bg: #1a1a2e;
  --card-bg: #16213e;
  --text-color: #e0e0e0;
  --border-radius: 16px;
  --font-main: 'Outfit', sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--dark-bg);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Dashboard Layout */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: rgba(22, 33, 62, 0.8);
  backdrop-filter: blur(10px);
  padding: 0 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1001;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-item {
  padding: 10px 20px;
  border-radius: 10px;
  transition: background 0.3s;
  font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.link-text {
  display: none;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 5px;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    /* Adjust if header height varies */
    left: 20px;
    right: 20px;
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2000;
  }

  .nav-links.open {
    display: flex;
  }

  .link-text {
    display: inline;
    margin-left: 10px;
    font-size: 1.1rem;
  }

  .nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* Cards / Grid Items */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card,
.list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  padding: 12px 15px;
  min-height: auto;
  background: rgba(22, 33, 62, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  transition: transform 0.2s, background 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card:hover,
.list-item:hover {
  transform: translateY(-2px);
  background: #1f2e52;
}

.product-card:active,
.list-item:active {
  transform: scale(0.98);
}

.product-card h3,
.list-item h3,
.list-item .title {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-color);
}

.product-card .icon,
.list-item .icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
}

.product-card.active,
.list-item.active {
  background: rgba(37, 117, 252, 0.15);
  border-color: var(--secondary-color);
}

.product-card.active .icon,
.list-item.active .icon {
  color: var(--secondary-color);
}

/* Checkbox specific (for Shopping List) */
.checkbox-wrapper {
  display: flex;
  align-items: center;
}

.custom-checkbox {
  /* Inherit icon style or keep generic? 
     User wanted 'checkbox' icon. 
     If we use material icons directly, we don't need .custom-checkbox box styling anymore.
  */
  display: none;
  /* Hiding old custom checkbox for now if we use icons */
}

.checkbox-wrapper.checked .custom-checkbox {
  background: var(--secondary-color);
}

.checkbox-wrapper.checked span {
  text-decoration: line-through;
  opacity: 0.6;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), #ff4b1f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(255, 0, 128, 0.4);
  cursor: pointer;
  transition: transform 0.3s;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Util */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1.5rem;
}

.btn-primary {
  background: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}