/* Application Branding Colors */
:root > * {
  --md-primary-fg-color:           #6a99f4;
  --md-primary-fg-color--light:    #98b9f7;
  --md-primary-fg-color--dark:     #4d7fd9;
  --md-accent-fg-color:            #6a99f4;
}

/* Background matches the light grey application canvas */
body {
  background-color: #f2f2f2;
}

/* Header styling (The very top bar) */
.md-header {
  background-color: var(--md-primary-fg-color);
}

/* Navigation Tabs Bar (The white bar below the header) */
.md-tabs {
  background-color: #ffffff;
}

/* 1. Default state: Dark grey text for readability */
.md-tabs__link {
  color: #404040 !important; 
  opacity: 0.7;
  transition: color .25s, opacity .25s;
}

/* 2. Hover state: Turns your brand blue #6a99f4 instead of white */
.md-tabs__link:hover {
  color: var(--md-primary-fg-color) !important;
  opacity: 1;
}

/* 3. Active state: Stays brand blue and bold when selected */
.md-tabs__link--active {
  color: var(--md-primary-fg-color) !important;
  opacity: 1;
  font-weight: bold;
}

/* Content "Card" styling to match the Asset List in the app screenshot */
.md-main__inner {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-top: 1.5rem;
  padding: 1.5rem;
}

/* --- Clickable Tile Logic (Fixed Hit Area) --- */

.grid.cards > ul > li {
  position: relative !important; /* Forces the tile to be the anchor */
  display: flex !important;
  flex-direction: column !important;
  padding: 1.5rem !important;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
}

/* Ensure the link inside the paragraph stretches to the LI boundaries */
.grid.cards > ul > li p a {
  display: flex !important;
  align-items: center;
  text-decoration: none !important;
  color: #333 !important;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* The Invisible layer that makes the WHOLE box clickable */
.grid.cards > ul > li a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Ensures it sits on top of all text/icons */
}

/* Icon styling */
.grid.cards > ul > li .twemoji {
  margin-right: 0.8rem;
  width: 28px;
  height: 28px;
  color: var(--md-primary-fg-color);
}

/* Description styling */
.grid.cards > ul > li p {
  margin: 0 !important;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Hover State: Match the application feel */
.grid.cards > ul > li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--md-primary-fg-color);
}

.grid.cards > ul > li:hover a {
  color: var(--md-primary-fg-color) !important;
}