/* Home Tab Styles - Matching Personal Tab Design */

/* Home Sidebar - Matches #people-overview exactly */
#home-sidebar {
  width: 20vw;
  /* Soft radial glow near top/left + diagonal depth */
  background:
    radial-gradient(900px 700px at 15% 4%,
      rgba(255,255,255,0.04) 0%,
      rgba(255,255,255,0.03) 35%,
      rgba(255,255,255,0.00) 60%),
    linear-gradient(140deg,
      var(--sb-1) 0%,
      var(--sb-2) 28%,
      var(--sb-3) 58%,
      var(--sb-4) 100%);
  /* optional polish */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -40px 60px rgba(0,0,0,0.18),
    6px 0 14px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  overflow-y: hidden;
  height: 100vh;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  position: relative;
}

#home-sidebar header {
  padding: 15px;
  padding-top: 7px; 
  padding-bottom: 0px;
  background-color: transparent;
  color: white;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

#home-sidebar header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: none;
  margin-top: 20px;
  margin-bottom: 24px;
  color: #ffffff;
}

/* Home Sidebar Navigation - Matches #people-list */
#home-sidebar-nav {
  list-style-type: none;
  padding: 0;
  overflow: visible;
}

/* Home Sidebar Items - Matches .person-item exactly */
.home-sidebar-item {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: left;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  margin: 0 8px;
  will-change: background-color;
  margin-top: 10px;
  color: #CBD0E4;
  background-color: transparent;
  border-bottom: none;
  height: auto;
  box-shadow: none;
  position: relative;
}

.home-sidebar-item:hover {
  background-color: #37468C;
}

.home-sidebar-item.active {
  background-color: #f2f3f4;
}

.home-sidebar-item span {
  font-weight: 600;
  color: #ffffff;
  font-size: 1.0rem;
}

/* Active state text color */
.home-sidebar-item.active span {
  color: var(--sidebar-color);
}

.home-sidebar-item .lucide-icon {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  color: #ffffff;
  stroke: #ffffff;
  stroke-width: 1.5;
}

/* Icon hover state */
.home-sidebar-item:hover .lucide-icon {
  color: #ffffff;
  stroke: #ffffff;
}

/* Icon active state */
.home-sidebar-item.active .lucide-icon {
  color: var(--sidebar-color);
  stroke: var(--sidebar-color);
}

/* SVG inside active item */
.home-sidebar-item.active svg {
  stroke: var(--sidebar-color) !important;
}

/* Additional SVG targeting for consistency */
.home-sidebar-item.active svg.lucide {
  stroke: var(--sidebar-color) !important;
}

/* Focus styles for accessibility */
.home-sidebar-item:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
}

.home-sidebar-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
}

/* Home Content Area - Matches #task-details exactly */
#home-details {
  width: 76vw;
  background-color: #FAFAFC;
  padding-right: 0;
  overflow-y: hidden;
  height: 95.2vh;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Home Content Sections */
.home-content-section {
  display: none;
  flex: 1;
  overflow-y: auto;
  box-sizing: content-box;
  scroll-behavior: smooth;
}

.home-content-section.active {
  display: block;
}

/* Placeholder Styles */
.home-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #676879;
  padding: 60px 40px;
}

.home-placeholder .lucide-icon {
  width: 80px;
  height: 80px;
  color: #68bbe3;
  margin-bottom: 24px;
  opacity: 0.8;
  stroke-width: 1.5;
}

.home-placeholder h2 {
  color: #2c3e50;
  margin-bottom: 12px;
  font-size: 1.75rem;
  font-weight: 600;
}

.home-placeholder p {
  font-size: 1.1rem;
  color: #676879;
  max-width: 500px;
  line-height: 1.6;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design - Match existing media queries */
@media screen and (max-width: 1280px) {
  #home-details {
    width: 71vw;
  }
}

@media screen and (max-width: 1024px) {
  #home-sidebar {
    width: 30vw;
  }
  
  #home-details {
    width: 66vw;
  }
}

@media (max-width: 768px) {
  #home-sidebar {
    width: 35vw;
  }

  .home-sidebar-item {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .home-placeholder h2 {
    font-size: 1.5rem;
  }

  .home-placeholder p {
    font-size: 1rem;
  }
}

