:root {
  --primary: #196619;
  --primary-dark: #5A3DDE;
  --secondary: #FF7D59;
  --dark: #2D3748;
  --light: #f8fdf8;
  --gray: #E2E8F0;
  --success: #48BB78;
  --danger: #F56565;
}

.modern-sidebar {
  width: 300px;
  height: calc(100vh - 100px);
  background: white;
  padding: 1rem;
  top: 100px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 100, 0, 0.3);
  position: sticky;
  overflow-y: auto;
}

/* Time Widget */
.time-widget {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.time-display {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.time {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.period {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.meal-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.wave-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  position: relative;
  margin: 1rem auto;
  width: 80%;
}

.wave-divider::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

/* Filter Sections */
.filter-section {
  margin-bottom: 1.5rem;
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0px rgba(0, 100, 0);
}

.section-header {
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  transition: all 0.2s ease;
}

.section-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.section-header i {
  font-size: 1rem;
  color: var(--primary);
}

.dropdown-arrow {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.collapse.show .dropdown-arrow {
  transform: rotate(180deg);
}

/* Toggle Options */
.toggle-group {
  padding: 0.5rem 1.25rem 1rem;
}

.toggle-option {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  /*margin-bottom: 0.5rem;*/
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.toggle-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.toggle-option:hover {
  background: rgba(108, 77, 246, 0.05);
}

.sidebar-btn,input[type="radio"]:checked + .toggle-option {
  background: #eafaea;
  font-weight: 500;
}
.sidebar-btn:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
    transform: scaleY(1)
}
.sidebar-btn:hover{background:green;color:#fff;}

input[type="radio"]:checked + .toggle-option::before {
  transform: scaleY(1);
}

input[type="radio"]:checked + .toggle-option .indicator {
  border-color: var(--primary);
}

input[type="radio"]:checked + .toggle-option .indicator::after {
  transform: scale(1);
}

.indicator {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray);
  border-radius: 50%;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.indicator::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s ease;
}

.veg-option .indicator::after {
  background: var(--success);
}

.nonveg-option .indicator::after {
  background: var(--danger);
}

.label-text {
  font-size: 0.9rem;
}

/* Meal Grid */
.meal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0.5rem 1.25rem 1rem;
}

.meal-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  border: 1px solid var(--gray);
}

.meal-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

input[type="radio"]:checked + .meal-option {
  border-color: var(--primary);
  background: rgba(108, 77, 246, 0.05);
}

.meal-icon {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.meal-option span {
  font-size: 0.8rem;
  text-align: center;
}

/* Search Button */
.search-button {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.search-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 77, 246, 0.3);
}

.button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0.1) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.search-button:hover .button-overlay {
  transform: translateX(100%);
}

/* Icons (using Unicode or you can replace with actual icon fonts) */
.icon-leaf::before { content: "🌱"; }
.icon-salad::before { content: "🥗"; }
.icon-clock::before { content: "⏰"; }
.icon-search::before { content: "🔍"; }
.icon-breakfast::before { content: "🍳"; }
.icon-lunch::before { content: "🍲"; }
.icon-snacks::before { content: "🍎"; }
.icon-dinner::before { content: "🍽"; }
.icon-dessert::before { content: "🍰"; }

@media (max-width: 590px) {
  .sidebar {
        position: fixed;
        top: 100px; /* below header */
        left: -250px;
        width: 250px;
        height: calc(100vh - 100px);
        z-index: 1040;
        transition: left 0.3s ease;
        background-color: #f8f9fa;
        border-right: 1px solid #dee2e6;
    }

    .sidebar.show {
        left: 0;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1035;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .overlay.active {
        display: block;
    }
    .recipe-grid,.recipe-grid.region {
        width:100%;
        margin:0 auto;
    }
    .home_page_title{font-weight:bold;}
    .card-title {font-size:1.5rem;}
    .small, small{font-size:1em;padding:5px 0;}
    .bg-orange{font-size:12px;}
    .main-content.home{width:400px;margin:0 auto;}
    .logo_dom{min-width:75px;}
}
