/* ==========================================================================
   Google Dashboard Strict Minimalist CSS
   ========================================================================== */

/* 1. Reset & Base Variables */
:root {
  --google-font-family: 'Google Sans', Roboto, Arial, sans-serif;
  --google-border-color: #dadce0;
  --google-bg-color: #ffffff;
  --google-text-primary: #202124;
  --google-text-secondary: #5f6368;
  --google-blue: #1a73e8;
  --google-red: #ea4335;
  --google-yellow: #fbbc04;
  --google-green: #34a853;
  --google-blue-hover: #174ea6;
  --google-blue-bg: #e8f0fe;
  --google-hover-bg: #f8f9fa;
  --google-sidebar-width: 256px;
  --google-appbar-height: 64px;
}

[data-theme="dark"] {
  --google-border-color: #3c4043;
  --google-bg-color: #202124;
  --google-text-primary: #e8eaed;
  --google-text-secondary: #9aa0a6;
  --google-blue: #8ab4f8;
  --google-red: #f28b82;
  --google-yellow: #fde293;
  --google-green: #81c995;
  --google-blue-hover: #aecbfa;
  --google-blue-bg: rgba(138, 180, 248, 0.12);
  --google-hover-bg: #303134;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Smooth Theme Transition (Material Design 3) */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 380ms cubic-bezier(0.2, 0, 0, 1), 
              color 380ms cubic-bezier(0.2, 0, 0, 1), 
              border-color 380ms cubic-bezier(0.2, 0, 0, 1), 
              fill 380ms cubic-bezier(0.2, 0, 0, 1), 
              stroke 380ms cubic-bezier(0.2, 0, 0, 1), 
              box-shadow 380ms cubic-bezier(0.2, 0, 0, 1) !important;
}

body {
  font-family: var(--google-font-family);
  background-color: var(--google-bg-color);
  color: var(--google-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

p {
  text-align: justify;
}

a {
  color: var(--google-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

/* 2. Top App Bar */
.google-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--google-appbar-height) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0 16px;
  border-bottom: 1px solid var(--google-border-color);
  background-color: var(--google-bg-color);
  flex-shrink: 0;
  z-index: 100;
}

.google-app-bar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.google-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--google-text-secondary);
  cursor: pointer;
  padding: 12px;
}
.google-menu-btn:hover {
  background-color: var(--google-hover-bg);
}

/* Hide sidebar toggle on desktop */
@media (min-width: 901px) {
  #sidebar-toggle {
    display: none;
  }
}

.google-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 400;
  color: var(--google-text-secondary);
  text-decoration: none;
}
.google-logo:hover {
  text-decoration: none;
}
.google-logo img {
  height: 32px;
}

.google-app-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 600px) {
  .google-logo span:last-child {
    display: none; /* Hide "Account" text on mobile to prevent overflow */
  }
  .google-app-bar__left {
    gap: 4px;
  }
  .google-app-bar__right {
    gap: 4px;
  }
}

.google-avatar-ring {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1. The spinning gradient disk (outermost) */
.google-avatar-ring::before {
  content: "";
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  background: conic-gradient(
    #4285F4 0deg,
    #EA4335 90deg,
    #FBBC05 180deg,
    #34A853 270deg,
    #4285F4 360deg
  );
  z-index: 0;
  animation: googleProRingSpin 4s linear infinite;
}

/* 2. The solid background color disk to punch a perfect hole */
.google-avatar-ring::after {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 50%;
  background: var(--google-bg-color); /* matches navbar to look like a gap */
  z-index: 1;
}

@keyframes googleProRingSpin {
  100% { transform: rotate(360deg); }
}

.google-avatar-ring .google-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
}

/* Google Apps Dropdown */
.google-apps-container {
  position: relative;
}

.google-apps-dropdown {
  position: absolute;
  top: 56px;
  right: 0;
  width: 320px;
  background-color: var(--google-bg-color);
  border: 1px solid var(--google-border-color);
  border-radius: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.google-apps-dropdown.active {
  display: flex;
}

[data-theme="dark"] .google-apps-dropdown {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.google-apps-header {
  font-size: 14px;
  font-weight: 500;
  color: var(--google-text-secondary);
  margin-bottom: 16px;
  padding: 0 8px;
  text-align: left;
}

.google-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 4px;
}

.google-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--google-text-primary);
  padding: 12px 8px;
  border-radius: 16px;
  transition: background-color 0.2s;
}

.google-app-item:hover {
  background-color: var(--google-blue-bg);
  text-decoration: none;
}

.google-app-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* Profile Picture Modal */
.google-profile-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.google-profile-modal {
  background-color: var(--google-bg-color);
  width: 90%;
  max-width: 400px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalScaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.google-profile-modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--google-border-color);
}
.google-profile-modal-header h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: var(--google-text-primary);
  text-align: center;
  width: 100%;
}
.google-profile-modal-body {
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.google-profile-modal-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
}

.google-app-item span {
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 600px) {
  .google-apps-dropdown {
    right: -40px;
  }
}


/* 3. Main Layout Area (Sidebar + Content) */
.google-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* 4. Top Nav */
.google-top-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
}

.google-nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.google-nav-item {
  margin-bottom: 0;
}

.google-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  margin: 0 2px;
  border-radius: 9999px;
  color: var(--google-text-secondary);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.google-nav-link:hover {
  background-color: var(--google-hover-bg);
  text-decoration: none;
}

.google-nav-link.active {
  background-color: var(--google-blue-bg);
  color: var(--google-blue);
}

.google-top-nav hr {
  display: none;
}

/* 5. Main Content Area */
.google-main-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 32px calc(32px + env(safe-area-inset-bottom, 0px)) 32px;
  background-color: var(--google-bg-color);
  position: relative;
}

.google-content-container {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.google-page-header {
  text-align: center;
  margin-bottom: 48px;
}
.google-page-header h1 {
  font-size: 36px;
  font-weight: 400;
  color: var(--google-text-primary);
  margin-bottom: 12px;
}
.google-page-header p {
  font-size: 18px;
  color: var(--google-text-secondary);
  text-align: inherit;
}

/* 6. Google Cards (M3) */
.google-card {
  position: relative;
  z-index: 2;
  border: 1px solid var(--google-border-color);
  border-radius: 24px;
  margin-bottom: 24px;
  background-color: var(--google-bg-color) !important;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.google-card-header {
  padding: 24px;
  border-bottom: 1px solid var(--google-border-color);
  background-color: var(--google-bg-color);
  display: flex;
  flex-direction: column;
}
.google-card-header h2 {
  font-size: 22px;
  font-weight: 400;
  color: var(--google-text-primary);
  margin-bottom: 8px;
}
.google-card-header p {
  font-size: 14px;
  color: var(--google-text-secondary);
}

.google-card-body {
  padding: 0;
  background-color: var(--google-bg-color);
}

.google-list-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--google-border-color);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}
.google-list-item:last-child {
  border-bottom: none;
}
.google-list-item--clickable {
  cursor: pointer;
}
.google-list-item--clickable:hover {
  background-color: var(--google-hover-bg);
  text-decoration: none;
}

.google-list-item-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 600px) {
  .google-list-item-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

.google-list-item-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--google-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 30%;
  min-width: 150px;
  white-space: nowrap;
}
.google-list-item-value {
  font-size: 16px;
  color: var(--google-text-primary);
  flex: 1;
}

.google-list-item-icon {
  margin-left: 16px;
  color: var(--google-text-secondary);
  font-size: 24px;
}
.google-list-item-chevron {
  margin-left: 16px;
  color: var(--google-text-secondary);
  font-size: 24px;
}

.google-card-footer {
  padding: 16px 24px;
  background-color: var(--google-bg-color);
  border-top: 1px solid var(--google-border-color);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 7. Buttons */
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 24px; /* Modern pill shape */
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  background-color: var(--google-blue);
  color: #fff !important; /* Ensure link color doesn't override */
  text-decoration: none !important;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.google-btn:hover,
.google-btn:focus,
.google-btn:active {
  background-color: var(--google-blue-hover);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}
.google-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.google-btn--yellow {
  background-color: #fbbc04 !important; /* Google yellow */
  color: #202124 !important; /* Dark text for contrast */
}
.google-btn--yellow:hover {
  background-color: #f2a900 !important;
  color: #202124 !important;
}

/* 8. Mobile Responsiveness */
@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    display: block;
  }
  .google-app-bar {
    position: sticky;
    top: 0;
  }
  .google-layout {
    display: block;
    overflow: visible;
  }
  .google-top-nav {
    position: fixed;
    top: var(--google-appbar-height);
    left: 0;
    width: var(--google-sidebar-width);
    height: calc(100vh - var(--google-appbar-height));
    z-index: 1000;
    transform: translateX(-100%);
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    background-color: var(--google-bg-color);
    border-right: 1px solid var(--google-border-color);
    transition: transform 0.2s ease;
    overflow-y: auto;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)) 0;
    display: block;
  }
  .google-top-nav.open {
    transform: translateX(0);
  }
  .google-top-nav .google-nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .google-top-nav .google-nav-item {
    margin-bottom: 4px;
  }
  .google-top-nav .google-nav-link {
    height: 48px;
    padding: 0 16px;
    margin: 0 12px;
    gap: 16px;
  }
  .google-top-nav hr {
    display: block;
  }
  .google-main-content {
    overflow-y: visible;
    padding: 16px 16px calc(80px + env(safe-area-inset-bottom, 0px)) 16px;
  }
  .google-page-header {
    text-align: center;
    margin-bottom: 32px;
  }
  .google-page-header h1 {
    font-size: 28px;
  }
  .google-page-header p {
    font-size: 16px;
  }
}

/* Segmented Theme Control */
.google-theme-control-container {
  padding: 8px 16px 8px 14px;
  display: flex;
  justify-content: flex-start;
}

.google-theme-segmented-control {
  display: flex;
  align-items: center;
  background-color: var(--google-hover-bg);
  border-radius: 24px;
  padding: 4px;
  gap: 4px;
  position: relative;
  z-index: 1;
}

/* Fluid Sliding Background Indicator */
.google-theme-segmented-control::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--google-blue-bg);
  z-index: -1;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), background-color 0.4s ease;
  transform: translateX(calc(var(--active-index, 0) * 44px));
}

.theme-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--google-text-secondary);
  transition: color 0.3s ease;
}

.theme-btn:hover {
  /* Removed background-color hover so it doesn't conflict with fluid indicator */
  color: var(--google-text-primary);
}

.theme-btn.active {
  background-color: transparent;
  color: var(--google-blue);
}

.theme-btn.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

.theme-btn .material-symbols-outlined {
  font-size: 20px;
  transition: font-variation-settings 0.2s ease;
}

/* Markdown Content Styling for Blog/Terms (Premium UX Patterns Style) */
.google-markdown {
  font-size: 16px;
  line-height: 1.75;
  color: var(--google-text-secondary);
  word-wrap: break-word;
}
.google-markdown > *:first-child { margin-top: 0; }
.google-markdown > *:last-child { margin-bottom: 0; }

.google-markdown h1,
.google-markdown h2,
.google-markdown h3,
.google-markdown h4,
.google-markdown h5,
.google-markdown h6 {
  color: var(--google-text-primary);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.google-markdown h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.8888889em; }
.google-markdown h2 { font-size: 1.5rem; border-bottom: 1px solid var(--google-border-color); padding-bottom: 0.3em; }
.google-markdown h3 { font-size: 1.25rem; }
.google-markdown h4 { font-size: 1rem; }
.google-markdown h5 { font-size: 0.875rem; }
.google-markdown h6 { font-size: 0.875rem; color: var(--google-text-secondary); }

.google-markdown p { margin-top: 0; margin-bottom: 1.25em; }

.google-markdown a {
  color: var(--google-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.google-markdown a:hover {
  text-decoration: none;
  color: var(--google-blue-hover);
}
[data-theme="dark"] .google-markdown a {
  color: #8ab4f8;
  text-decoration: none;
}
[data-theme="dark"] .google-markdown a:hover {
  text-decoration: none;
  color: var(--google-blue);
}
.google-markdown a.google-btn,
.google-markdown a.google-btn:hover,
.google-markdown a.google-btn:focus,
.google-markdown a.google-btn:active,
.google-markdown .google-btn {
  text-decoration: none !important;
}

.google-markdown strong { font-weight: 600; color: var(--google-text-primary); }

.google-markdown blockquote {
  font-weight: 400;
  font-style: italic;
  color: var(--google-text-primary);
  border-left: 4px solid var(--google-border-color);
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  background-color: var(--google-hover-bg);
  padding: 1rem 1rem 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
}
.google-markdown blockquote p { margin-bottom: 0; }

.google-markdown ul, .google-markdown ol {
  margin-top: 0;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}
.google-markdown li { margin-top: 0.5em; margin-bottom: 0.5em; }

.google-markdown hr {
  height: 1px;
  padding: 0;
  margin: 3em 0;
  background-color: var(--google-border-color);
  border: 0;
}

.google-markdown table {
  width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}
.google-markdown table th, .google-markdown table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--google-border-color);
}
.google-markdown table th {
  background-color: var(--google-hover-bg);
  font-weight: 600;
  color: var(--google-text-primary);
  text-align: left;
}
.google-markdown table tr:nth-child(2n) {
  background-color: rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .google-markdown table tr:nth-child(2n) {
  background-color: rgba(255, 255, 255, 0.02);
}

.google-markdown img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 2em;
  margin-bottom: 2em;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Inline code */
.google-markdown code {
  font-family: 'JetBrains Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.2em 0.4em;
  background-color: var(--google-hover-bg);
  border-radius: 6px;
  color: var(--google-text-primary);
  border: 1px solid var(--google-border-color);
}

/* Code blocks (with wrapper support) */
.blog-code-wrapper {
  position: relative;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--google-border-color);
  background-color: #0d1117; /* GitHub Dark style for code blocks */
}
[data-theme="dark"] .blog-code-wrapper {
  background-color: #161b22;
}

.btn-copy-code {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #c9d1d9;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--google-font-family);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  z-index: 10;
}
.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.btn-copy-code .material-symbols-outlined {
  font-size: 14px;
}

.google-markdown pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background-color: transparent; /* Wrapper handles bg */
  border: none;
}
/* When pre is directly used without wrapper */
.google-markdown > pre {
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  border-radius: 12px;
  border: 1px solid var(--google-border-color);
  background-color: #0d1117;
}

.google-markdown pre code {
  background-color: transparent;
  padding: 0;
  font-size: 0.875em;
  color: #c9d1d9; /* Light text for dark code block */
  border: none;
  font-family: 'JetBrains Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 9. Modals / Dialogs */
.google-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32, 33, 36, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 16px;
}
.google-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.google-modal {
  background: var(--google-bg-color);
  border-radius: 28px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 38px 3px rgba(0,0,0,0.14), 0 9px 46px 8px rgba(0,0,0,0.12), 0 11px 15px -7px rgba(0,0,0,0.2);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.2s cubic-bezier(0, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.google-modal-overlay.active .google-modal {
  transform: translateY(0) scale(1);
}
.google-modal-header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.google-modal-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--google-text-primary);
}
.google-modal-close {
  background: none;
  border: none;
  color: var(--google-text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -8px -8px 0 0;
}
.google-modal-close:hover {
  background-color: var(--google-hover-bg);
}
.google-modal-body {
  padding: 0 24px 24px;
  color: var(--google-text-secondary);
  font-size: 16px;
}
.google-modal-body h3 {
  font-size: 18px;
  color: var(--google-text-primary);
  margin: 16px 0 8px;
  font-weight: 500;
}
.google-modal-body ul {
  padding-left: 20px;
  margin-top: 12px;
}
.google-modal-body li {
  margin-bottom: 8px;
}

/* Skills Progress Bars */
.skill-item {
  margin-bottom: 24px;
}
.skill-item:last-child {
  margin-bottom: 0;
}
.skill-label {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--google-text-primary);
}
.md3-linear-progress {
  width: 100%;
  height: 4px;
  background-color: var(--google-border-color); /* fallback */
  background-color: rgba(26, 115, 232, 0.12); /* md3 surface variant approximation for blue */
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.md3-linear-progress-bar {
  height: 100%;
  background-color: var(--google-blue);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}
.md3-linear-progress-bar.red {
  background-color: var(--google-red);
}
.md3-linear-progress-bar.yellow {
  background-color: var(--google-yellow);
}
.md3-linear-progress-bar.green {
  background-color: var(--google-green);
}

/* Floating Action Button (FAB) */
.google-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--google-blue);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.google-fab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.google-fab:hover {
  background-color: var(--google-blue-hover);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
[data-theme="dark"] .google-fab {
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
[data-theme="dark"] .google-fab:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.7);
}

/* ==========================================================================
   Highlight Wavy Underline
   ========================================================================== */
.highlight-wavy {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  background-color: transparent !important;
}
.highlight-wavy::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 12px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Cpath d='M0 15 Q 25 25 50 15 T 100 15' fill='none' stroke='%231a73e8' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 30px 12px;
  background-position: left bottom;
  pointer-events: none;
}
[data-theme="dark"] .highlight-wavy::after {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Cpath d='M0 15 Q 25 25 50 15 T 100 15' fill='none' stroke='%238ab4f8' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Highlight Hand-drawn Circle
   ========================================================================== */
.highlight-circle {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  background-color: transparent !important;
}
.highlight-circle::after {
  content: "";
  position: absolute;
  left: -4%;
  top: -20%;
  width: 108%;
  height: 140%;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='9 6 82 28' preserveAspectRatio='none'%3E%3Cpath d='M 15 10 Q 50 5 85 10 Q 95 20 85 30 Q 50 35 15 30 Q 5 20 18 12' fill='none' stroke='%23ea4335' stroke-width='3' vector-effect='non-scaling-stroke' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
[data-theme="dark"] .highlight-circle::after {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='9 6 82 28' preserveAspectRatio='none'%3E%3Cpath d='M 15 10 Q 50 5 85 10 Q 95 20 85 30 Q 50 35 15 30 Q 5 20 18 12' fill='none' stroke='%23f28b82' stroke-width='3' vector-effect='non-scaling-stroke' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Vintage Kerala Stickers
   ========================================================================== */
.vintage-sticker {
  position: absolute;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(100%);
  mix-blend-mode: multiply;
  color: var(--google-text-primary);
  transition: opacity 0.3s;
}

[data-theme="dark"] .vintage-sticker {
  opacity: 0.2;
  filter: grayscale(100%) invert(1);
  mix-blend-mode: screen;
}

/* Hide ambient stickers completely on mobile and tablet viewports to protect card opacity and clarity */
@media (max-width: 992px) {
  .vintage-sticker {
    display: none !important;
  }
}

.donate-arrow-svg {
  display: none !important;
}
