:root {
  --font-family-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  --font-family-serif: "Georgia", "Cambria", "Times New Roman", Times, serif;
  --font-family-mono: "Source Code Pro", "Menlo", "Monaco", "Consolas",
    "Courier New", monospace;

  --google-blue: #1a73e8;
}

body {
  font-family: var(--font-family-sans);
  margin: 0;
  background-color: var(--google-bg-grey);
  color: #202124;
  overflow-x: hidden;
  line-height: 1.6; /* Add more line spacing for readability */
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 0px solid var(--google-border-color);
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px #00000014;
}

.header .menu-icon {
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
}

.header .menu-icon:hover {
  background-color: var(--google-hover-grey);
}

.header .logo {
  font-size: 22px;
  font-weight: 500;
  color: var(--google-grey-text);
}

.header .search-bar {
  flex-grow: 1;
  margin: 0 24px;
}

.header .search-bar input {
  width: 100%;
  max-width: 720px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background-color: var(--google-hover-grey);
}

.header .search-bar input:focus {
  background-color: #fff;
  box-shadow: 0 1px 6px 0 rgba(32, 33, 36, 0.28);
  border-color: rgba(223, 225, 229, 0);
  outline: none;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.container {
  display: flex;
}

.left-nav {
  position: sticky; /* Make the nav sticky */
  top: 61px;
  width: 20;
  background-color: #fff;
  height: calc(100vh - 61px);
  flex-shrink: 0;
  overflow-y: auto;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 0px solid var(--google-border-color);
}

.left-nav.collapsed {
  width: 0;
  border-right: none;
  overflow: hidden;
}

.left-nav a {
  text-decoration: none;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
  white-space: nowrap;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  margin-right: 12px;
}

.nav-item:hover {
  background-color: var(--google-hover-grey);
}

.nav-item.active {
  background-color: var(--google-active-blue);
  color: var(--google-blue);
  font-weight: 700;
}

.nav-item.active .material-icons {
  color: var(--google-blue);
}

.nav-item .material-icons {
  margin-right: 24px;
  color: var(--google-grey-text);
}

.main-content {
  flex-grow: 1;
  padding: 24px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #fff;
}

.content-card {
  background-color: #fff;
  border: 1px solid var(--google-border-color);
  border-radius: 8px;
  padding: 35px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 16px;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #003963;
  color: #fff;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
}

/* Style for the new profile icon in the header */
.header-profile-icon {
  width: 40px; /* Sets the width of the icon */
  height: 40px; /* Sets the height of the icon */
  border-radius: 50%; /* This is what makes the image a perfect circle */
  object-fit: cover; /* Ensures the image fills the circle without being stretched */

  vertical-align: middle; /* Helps align it perfectly with the menu icon */
}

/* Styles for the new Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  color: #3c4043;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--google-border-color);
  border-radius: 4px;
  font-size: 16px;

  transition: border-color 0.2s;

  /* Use the main sans-serif font for consistency */
  font-family: var(--font-family-sans);
  transition: border-color 0.2s;

  background-color: #eeeeec; /* Make the input fields white */
  color: #202124;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--google-blue);
}

.submit-button {
  background-color: var(--google-blue);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  align-self: flex-start; /* Aligns button to the left */
}

.submit-button:hover {
  background-color: #185abc;
}

/* Styles for the AI Agents sub-navigation */
.sub-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.sub-nav-links a {
  text-decoration: none;
  color: var(--google-grey-text);
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 500;
}

.sub-nav-links a:hover {
  background-color: var(--google-hover-grey);
}

.sub-nav-links a.active {
  background-color: var(--google-active-blue);
  color: var(--google-blue);
}

/* Styles for the code block and copy button */
.code-block-wrapper {
  position: relative;
  margin-top: 16px;
}

.code-block-wrapper pre {
  background-color: #f8f9fa;
  border: 1px solid var(--google-border-color);
  padding: 16px;
  padding-top: 48px; /* Add space at the top for the button */
  border-radius: 8px;
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
}

.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #f1f3f4;
  border: 1px solid var(--google-border-color);
  border-radius: 20px; /* Make it a pill shape or circle */
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.copy-button:hover {
  opacity: 1;
  background-color: #e8eaed;
}

.copy-button .material-icons {
  color: #3c4043;
  font-size: 20px;
}

a {
  color: #007bff; /* Blue color */
  text-decoration: none; /* Remove underline */
}

a:hover {
  color: green;
}

a:active {
  color: green;
}

a:focus {
  outline: 1px solid white; /* Add an outline for accessibility */
}

.ai-agent-image {
  display: block; /* Treat the image as a block element */
  width: 50%; /* Make the image 50% of the container's width */
  height: 70%; /* Maintain the correct aspect ratio */
  margin: 24px auto; /* 'auto' on left/right centers it. 24px on top/bottom adds space. */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/*
  This new container will hold the menu icon and logo together.
  'display: flex' and 'align-items: center' will make sure they are
  vertically aligned perfectly with each other.
*/
.header-left {
  display: flex;
  align-items: center;
  gap: 2px; /* Adds a nice space between the menu icon and the logo */
}

/*
  This targets the new logo image directly to control its size.
*/
.header-logo img {
  height: 50px; /* Adjust this value to fit your header's height perfectly */
  width: auto; /* This ensures the image aspect ratio is maintained */
  /* vertical-align helps prevent any tiny alignment issues */
  vertical-align: middle;
}

/* The main lightbox container (the dark overlay) */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 2000; /* Sit on top of everything */
  padding-top: 60px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(34, 33, 33, 0.9); /* Black with opacity */
  transition: opacity 0.6s ease;
}

/* The enlarged image */
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 80vh;
  /* Animation */
  animation-name: zoom;
  animation-duration: 0.6s;
}

/* The caption text */
.lightbox-caption {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* The Close Button */
.lightbox-close {
  position: absolute;
  top: 55px;
  right: 25px;
  color: rgb(231, 236, 231);
  font-size: 40px;
  font-weight: bold;
  transition: 0.5s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
}

/* Add Zoom Animation */
@keyframes zoom {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

/* Make images with the trigger class clickable */
.lightbox-trigger {
  cursor: zoom-in;
  transition: opacity 0.3s;
}

.lightbox-trigger:hover {
  opacity: 0.8;
}

.footer a {
  color: #fff; /* Make the link color white, inheriting from the parent */
  text-decoration: none; /* It's good practice to underline links in a sentence */
}

/* Optional: Add a subtle hover effect */
.footer a:hover {
  color: #e0e0e0; /* A slightly off-white color on hover */
}
