/* ================= IMPORT GOOGLE FONTS ================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ================= THEME TOKENS ================= */
:root {
  /* Light Theme Defaults */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-hover: #f1f3f4;
  --text-primary: #202124;
  --text-secondary: #70757a;
  --text-light: #5f6368;
  --border-color: #dadce0;
  --border-hover: #ebebeb;
  --link-color: #1a0dab;
  --link-visited: #609;
  --blue-accent: #1a73e8;
  --blue-accent-hover: #1557b0;
  --search-shadow: 0 1px 6px rgba(32,33,36,0.28);
  --input-bg: #ffffff;
  --card-bg: #ffffff;
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --divider-color: #e8eaed;
  
  --font-family: 'Roboto', Arial, sans-serif;
  --font-product-sans: 'Google Sans', 'Roboto', Arial, sans-serif;
  
  /* Transitions */
  --transition-speed: 0.2s;

  /* Login Variables - Light Mode Default */
  --login-bg: #f0f4f9;
  --login-card-bg: #ffffff;
  --login-card-border: 1px solid #dadce0;
  --login-text: #1f1f1f;
  --login-text-secondary: #5f6368;
  --login-input-border: #747775;
  --login-link: #0b57d0;
  --login-btn-bg: #0b57d0;
  --login-btn-text: #ffffff;
  --login-btn-hover: #0842a0;
  --login-notice-text: #5f6368;

  /* Search Bar - Light Mode */
  --search-bar-bg: #ffffff;
  --search-bar-border: #dfe1e5;
  --search-bar-border-focus: #4285f4;
}

body.dark-theme {
  /* Dark Theme Tokens */
  --bg-primary: #202124;
  --bg-secondary: #303134;
  --bg-hover: #3c4043;
  --text-primary: #e8eaed;
  --text-secondary: #bdc1c6;
  --text-light: #9aa0a6;
  --border-color: #3c4043;
  --border-hover: #5f6368;
  --link-color: #8ab4f8;
  --link-visited: #c58af9;
  --blue-accent: #8ab4f8;
  --blue-accent-hover: #aecbfa;
  --search-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  --input-bg: #303134;
  --card-bg: #303134;
  --overlay-bg: rgba(0, 0, 0, 0.75);
  --divider-color: #3c4043;

  /* Login Variables - Dark Mode */
  --login-bg: #131314;
  --login-card-bg: #1b1b1b;
  --login-card-border: 1px solid rgba(255, 255, 255, 0.05);
  --login-text: #e3e3e3;
  --login-text-secondary: #c4c7c5;
  --login-input-border: #8e918f;
  --login-link: #a8c7fa;
  --login-btn-bg: #a8c7fa;
  --login-btn-text: #0b2f61;
  --login-btn-hover: #c2dbff;
  --login-notice-text: #c4c7c5;

  /* Search Bar - Dark Mode */
  --search-bar-bg: #303134;
  --search-bar-border: #5f6368;
  --search-bar-border-focus: #8ab4f8;
}

/* ================= BASIC RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  outline: none;
}

/* Common view styles */
.view {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.view.hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

/* ================= HOMEPAGE STYLING ================= */

/* Header */
.home-header {
  height: 60px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-link {
  font-size: 13px;
  color: var(--text-primary);
  opacity: 0.85;
}

.header-link:hover {
  text-decoration: underline;
  opacity: 1;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background-color var(--transition-speed);
}

.header-icon-btn:hover {
  background-color: var(--bg-hover);
}

.login-btn {
  background-color: var(--blue-accent, #1a73e8);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 9px 23px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
  background-color: #1b66c9;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--blue-accent-hover);
  box-shadow: 0 1px 2px 0 rgba(66,133,244,0.3), 0 1px 3px 1px rgba(66,133,244,0.15);
}

/* User Avatar (Logged-in State) */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #8ab4f8; /* default color, can be dynamic */
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-family);
  flex-shrink: 0;
  border: 4px solid transparent;
}

body.dark-theme .user-avatar {
  background-color: #e8eaed;
  color: #202124;
}

.user-avatar:hover {
  background-color: #aecbfa;
}

body.dark-theme .user-avatar:hover {
  background-color: #f1f3f4;
}

/* Buttons */
.btn-secondary {
  background-color: transparent;
  color: var(--blue-accent);
}

/* Main */
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px 100px 20px; /* offset for visual balance */
}

.logo-container {
  margin-bottom: 28px;
}

.google-logo {
  max-width: 272px;
  height: auto;
  user-select: none;
}

/* Search Form */
.search-form {
  width: 100%;
  max-width: 584px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background-color: var(--search-bar-bg, #303134);
  border: 1px solid var(--search-bar-border, #5f6368);
  border-radius: 100px;
  padding: 0 8px 0 4px;
  height: 54px;
  gap: 4px;
  transition: box-shadow var(--transition-speed), border-color var(--transition-speed), background-color var(--transition-speed);
}

.search-input-wrapper:hover, .search-input-wrapper:focus-within {
  border-color: var(--search-bar-border-focus, #8ab4f8);
}

/* Plus button on the left */
.search-plus-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary, #bdc1c6);
  flex-shrink: 0;
  transition: background-color var(--transition-speed);
}

.search-plus-btn:hover {
  background-color: var(--bg-hover, #3c4043);
}

/* Left vertical divider */
.search-left-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-color, #5f6368);
  flex-shrink: 0;
  margin: 0 4px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  height: 100%;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
  padding: 0 8px;
}

.search-input-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.action-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #bdc1c6);
  flex-shrink: 0;
  transition: background-color var(--transition-speed);
}

.action-icon-btn:hover {
  background-color: var(--bg-hover, #3c4043);
}

.search-icon-keyboard {
  opacity: 0.75;
}

.divider {
  width: 1px;
  height: 20px;
  background-color: var(--border-color);
}

.divider.hidden {
  display: none !important;
}

.action-icon-btn.hidden {
  display: none !important;
}

/* AI Mode pill button */
.ai-mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-hover, #3c4043);
  border: 1px solid var(--border-color, #5f6368);
  border-radius: 100px;
  padding: 8px 16px;
  color: var(--text-primary, #e8eaed);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
  margin-left: 4px;
}

.ai-mode-btn:hover {
  background-color: var(--border-color, #5f6368);
}

.ai-mode-btn svg {
  opacity: 0.9;
}

/* Buttons */
.search-buttons-row {
  margin-top: 29px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.search-btn {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  color: var(--text-primary);
  border: 1px solid transparent;
  transition: border var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
}

.search-btn:hover {
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  background-color: var(--bg-hover);
  border: 1px solid var(--border-hover);
}

.search-btn:focus {
  border: 1px solid var(--blue-accent);
}




/* Autocomplete suggestions dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 6px rgba(32,33,36,0.28);
  border: 1px solid transparent;
  border-top: none;
  z-index: 100;
  overflow: hidden;
  padding-bottom: 8px;
}

.autocomplete-dropdown.hidden {
  display: none !important;
}

body.dark-theme .autocomplete-dropdown {
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  color: var(--text-primary);
}

.suggestion-item:hover {
  background-color: var(--bg-hover);
}

.suggestion-icon {
  color: var(--text-light);
  margin-right: 14px;
  display: flex;
  align-items: center;
}

.suggestion-text {
  flex: 1;
}

/* Languages Bar */
.languages-bar {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-light);
}

.lang-link {
  margin-left: 6px;
}

/* Home Footer */
.home-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  font-size: 15px;
  color: var(--text-light);
}

.footer-top {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.location-text {
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 15px 20px;
  gap: 15px;
}

.footer-bottom-left, .footer-bottom-right {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-light);
  font-size: 14px;
}

.footer-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}


/* ================= RESULTS VIEW STYLING ================= */

/* Header */
.results-header {
  position: sticky;
  top: 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--divider-color);
  z-index: 50;
  padding-top: 20px;
}

.results-header-top {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 48px;
  gap: 24px;
}

.results-logo-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.google-logo-small {
  width: 92px;
  height: 30px;
}

/* Search bar on results */
.results-search-form {
  flex: 1;
  max-width: 692px;
}

.results-search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  height: 44px;
  padding: 0 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.results-search-input-wrapper:hover, .results-search-input-wrapper:focus-within {
  border-color: transparent;
  box-shadow: var(--search-shadow);
}

.results-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: var(--text-primary);
  height: 100%;
}

.results-input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-search-trigger-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-accent);
}

.results-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Navigation tabs below search bar */
.results-nav-tabs {
  padding-left: 170px;
  margin-top: 12px;
}

.nav-tabs-container {
  display: flex;
  gap: 24px;
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 3px solid transparent;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 400;
  transition: color var(--transition-speed), border-bottom var(--transition-speed);
}

.nav-tab-btn.active {
  color: var(--blue-accent);
  border-bottom: 3px solid var(--blue-accent);
}

.nav-tab-btn:hover {
  color: var(--text-primary);
}

.tab-icon {
  display: flex;
  align-items: center;
}

/* Results Main area */
.results-main {
  flex: 1;
  padding-left: 170px;
  padding-right: 24px;
  padding-bottom: 60px;
}

.results-layout-container {
  display: flex;
  max-width: 1280px;
  gap: 60px;
}

.results-column {
  flex: 1;
  max-width: 652px;
}

/* Stats */
.results-stats {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 15px;
  margin-bottom: 20px;
}

/* Web Result Card */
.result-card {
  margin-bottom: 30px;
  animation: fadeIn 0.4s ease;
  max-width: 652px;
}

.result-header-link {
  display: block;
  text-decoration: none;
  margin-bottom: 4px;
}

.result-site-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.result-favicon-wrapper {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.result-favicon-initial {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-product-sans);
}

.result-favicon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.result-site-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.result-site-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 400;
}

.result-cite {
  font-size: 12px;
  color: #4d5156; /* Darker grey matching Google's original URL display */
  font-style: normal; /* Force normal font style, removing default browser italic from <cite> tag */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.result-cite-path {
  color: #4d5156;
  font-style: normal;
}

.result-title {
  font-size: 20px;
  font-family: var(--font-family);
  color: var(--link-color);
  line-height: 1.3;
  margin-top: 2px;
  margin-bottom: 4px;
  font-weight: 400;
}

.result-title:hover {
  text-decoration: underline;
}

.result-snippet {
  font-size: 14px;
  color: #4d5156;
  line-height: 1.58;
}

body.dark-theme .result-snippet {
  color: #bdc1c6;
}

/* Sitelinks (sub-links below a result) */
.result-sitelinks {
  margin-top: 4px;
  border-top: 1px solid var(--divider-color);
  max-width: 652px;
}

.sitelink-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--divider-color);
  text-decoration: none;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.sitelink-item:hover {
  background-color: var(--bg-hover);
}

.sitelink-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sitelink-title {
  font-size: 16px;
  color: var(--link-color);
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.4;
}

.sitelink-item:hover .sitelink-title {
  text-decoration: underline;
}

.sitelink-snippet {
  font-size: 13px;
  color: #4d5156;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark-theme .sitelink-snippet {
  color: #bdc1c6;
}

.sitelink-arrow {
  font-size: 22px;
  color: var(--blue-accent);
  margin-left: 16px;
  flex-shrink: 0;
  font-weight: 300;
}

/* Local Section Styling (Locais / Google Maps integration) */
.local-section {
  max-width: 652px;
  margin-top: 10px;
  margin-bottom: 30px;
  border: 1px solid var(--divider-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-primary);
  font-family: var(--font-family);
}

.local-header {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  padding: 16px;
  margin: 0;
  border-bottom: 1px solid var(--divider-color);
}

.local-map-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.local-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-map-city-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

body.dark-theme .local-map-city-label {
  background-color: rgba(32, 33, 36, 0.9);
  color: #e8eaed;
}

.local-list {
  display: flex;
  flex-direction: column;
}

.local-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--divider-color);
}

.local-item:hover {
  background-color: var(--bg-hover);
}

.local-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.local-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.local-item-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #d93025;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.local-item-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--link-color);
  cursor: pointer;
}

.local-item-name:hover {
  text-decoration: underline;
}

.local-item-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.local-item-status {
  font-size: 13px;
  color: #137333;
  font-weight: 500;
}

body.dark-theme .local-item-status {
  color: #81c995;
}

.local-item-actions {
  display: flex;
  gap: 12px;
  margin-left: 16px;
}

.local-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--divider-color);
  background-color: var(--bg-primary);
  color: var(--blue-accent);
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
  cursor: pointer;
  flex-direction: column;
  gap: 2px;
}

.local-action-btn::before {
  font-size: 14px;
}

.local-action-btn:hover {
  background-color: var(--bg-hover);
}

.local-more-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--link-color);
  font-size: 14px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 500;
  transition: background-color 0.2s;
}

.local-more-btn:hover {
  background-color: var(--bg-hover);
}

/* Image search results grid styling */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
  animation: fadeIn 0.4s ease;
}

.image-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.image-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.image-card-title {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

/* Sidebar / Knowledge Panel */
.knowledge-panel {
  width: 368px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  height: fit-content;
  background-color: var(--card-bg);
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.kp-title {
  font-size: 30px;
  font-family: var(--font-family);
  margin-bottom: 2px;
  font-weight: 400;
}

.kp-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.kp-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.kp-description {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider-color);
}

.kp-attribute {
  margin-bottom: 10px;
  font-size: 14px;
}

.kp-attribute-label {
  font-weight: 700;
}

/* Pagination */
.results-pagination {
  margin-top: 50px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  font-family: var(--font-product-sans);
}

.google-pag-table {
  border-collapse: collapse;
  text-align: center;
  margin: 0;
  padding: 0;
}

.google-pag-table td {
  padding: 0;
  vertical-align: bottom;
}

.pag-link, .pag-next-link {
  text-decoration: none;
  cursor: pointer;
  display: block;
}

.pag-link:hover .pag-block-bottom,
.pag-next-link:hover .pag-next-text {
  text-decoration: underline;
}

.pag-block-top {
  display: block;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.pag-block-bottom {
  display: block;
  font-size: 14px;
  color: var(--blue-accent);
  margin-top: 5px;
  font-family: var(--font-family);
  height: 20px;
}

.pag-block-bottom.active {
  color: var(--text-primary);
  pointer-events: none;
  text-decoration: none;
}

.pag-g { color: #4285F4; }
.pag-o { color: #EA4335; }
.pag-o.blue { color: #4285F4; }
.pag-o.red { color: #EA4335; }
.pag-o.yellow { color: #FBBC05; }
.pag-l { color: #34A853; }
.pag-e { color: #EA4335; }

.pag-next-icon {
  display: block;
  font-size: 28px;
  color: var(--blue-accent);
  font-weight: 400;
  line-height: 1;
  margin-left: 15px;
  margin-bottom: -1px;
}

.pag-next-text {
  display: block;
  font-size: 14px;
  color: var(--blue-accent);
  margin-top: 5px;
  margin-left: 15px;
  font-family: var(--font-family);
}

/* Results Footer */
.results-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 14px;
}

.results-footer-top {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-light);
  display: inline-block;
}

.results-footer-bottom {
  padding: 12px 24px;
  display: flex;
  gap: 24px;
}


/* ================= POPUPS / DRAWERS ================= */

/* General Drawer styling (Apps Drawer) */
.drawer {
  position: absolute;
  top: 55px;
  right: 15px;
  width: 320px;
  max-height: 480px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 18px rgba(0,0,0,0.1);
  padding: 24px;
  overflow-y: auto;
  z-index: 200;
  animation: scaleIn 0.2s cubic-bezier(0.2, 0, 0, 1.0);
}

body.dark-theme .drawer {
  box-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 4px 18px rgba(0,0,0,0.4);
}

.drawer.hidden {
  display: none !important;
}

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

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
  border-radius: 12px;
  transition: background-color var(--transition-speed);
}

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

.app-icon-bg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.app-name {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 400;
}

/* User Profile Popup Menu */
.profile-popup {
  position: absolute;
  top: 60px;
  right: 15px;
  width: 360px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15);
  z-index: 250;
  padding: 16px;
  box-sizing: border-box;
  animation: scaleIn 0.2s cubic-bezier(0.2, 0, 0, 1.0);
  font-family: var(--font-family);
}

body.dark-theme .profile-popup {
  background-color: #2d2e30;
  border-color: #3c4043;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.3);
}

.profile-popup.hidden {
  display: none !important;
}

.profile-popup-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.profile-popup-email {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.profile-close-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.profile-close-btn:hover {
  background-color: var(--bg-hover);
}

.profile-popup-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: 12px;
}

.profile-large-avatar-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.profile-large-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #c04818; /* dynamic color in app.js */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 400;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.profile-avatar-camera {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

body.dark-theme .profile-avatar-camera {
  background-color: #2d2e30;
  border-color: #3c4043;
}

.profile-user-greeting {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.profile-manage-account-btn {
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.profile-manage-account-btn:hover {
  background-color: var(--bg-hover);
}

/* Info Card */
.profile-info-card {
  background-color: rgba(138, 180, 248, 0.08);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

body.dark-theme .profile-info-card {
  background-color: rgba(138, 180, 248, 0.05);
}

.profile-info-card-icon {
  color: var(--blue-accent);
  flex-shrink: 0;
}

.profile-info-card-content p {
  margin: 0 0 12px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: left;
}

.profile-info-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.btn-info-action {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  color: var(--text-secondary);
}

.btn-info-action.highlight {
  color: var(--blue-accent);
  background-color: rgba(138, 180, 248, 0.12);
}

.btn-info-action:hover {
  background-color: rgba(128, 128, 128, 0.08);
}

/* Actions Row */
.profile-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
}

.profile-action-column-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  background: transparent;
  transition: background-color var(--transition-speed);
}

.profile-action-column-btn:hover {
  background-color: var(--bg-hover);
}

.profile-action-column-btn svg {
  color: var(--text-secondary);
}

/* Options List */
.profile-more-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  text-align: left;
}

.profile-options-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.profile-option-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color var(--transition-speed);
  box-sizing: border-box;
}

.profile-option-item:hover {
  background-color: var(--bg-hover);
}

.profile-option-item .option-icon {
  color: var(--text-secondary);
  margin-right: 12px;
  flex-shrink: 0;
}

.profile-option-item .option-text {
  font-size: 14px;
  color: var(--text-primary);
  flex-grow: 1;
  text-align: left;
}

.profile-option-item .option-status {
  font-size: 12px;
  color: var(--text-light);
}

/* Split Actions */
.profile-split-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4px;
  margin-bottom: 12px;
}

.profile-split-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.profile-split-btn:hover {
  background-color: var(--bg-hover);
}

.profile-split-btn svg {
  color: var(--text-secondary);
}

/* Legal Footer */
.profile-popup-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--divider-color);
  font-size: 11px;
}

.profile-popup-legal a {
  color: var(--text-secondary);
  text-decoration: none;
}

.profile-popup-legal a:hover {
  text-decoration: underline;
}

.profile-popup-legal .legal-dot {
  color: var(--text-light);
}

/* Settings Menu Dropdown */
.settings-dropdown {
  position: absolute;
  bottom: 50px;
  right: 20px;
  width: 250px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  z-index: 200;
  padding: 6px 0;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme .settings-dropdown {
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.settings-dropdown.hidden {
  display: none !important;
}

.settings-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
}

.settings-option:hover {
  background-color: var(--bg-hover);
  text-decoration: none;
}

.status-label {
  font-size: 11px;
  font-weight: 700;
  background-color: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}


/* ================= VOICE SEARCH OVERLAY ================= */
.voice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary);
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.voice-overlay.hidden {
  display: none !important;
}

.voice-overlay-content {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 40px;
}

.voice-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: background-color var(--transition-speed);
}

.voice-close-btn:hover {
  background-color: var(--bg-hover);
}

.voice-status-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.voice-status {
  font-size: 32px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.voice-transcript {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  min-height: 36px;
}

/* Pulsing waves animations */
.voice-mic-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-mic-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 1px solid var(--border-color);
}

.voice-wave {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--blue-accent);
  opacity: 0.15;
  z-index: 1;
}

.wave-1 {
  animation: pulseWave 1.6s infinite ease-out;
}

.wave-2 {
  animation: pulseWave 1.6s infinite ease-out 0.5s;
}

.wave-3 {
  animation: pulseWave 1.6s infinite ease-out 1s;
}


/* ================= GOOGLE LENS OVERLAY ================= */
.lens-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--overlay-bg);
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(4px);
}

.lens-overlay.hidden {
  display: none !important;
}

.lens-container {
  width: 90%;
  max-width: 600px;
  background-color: var(--card-bg);
  border-radius: 28px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
  padding: 24px;
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lens-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.lens-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.lens-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.lens-close-btn:hover {
  background-color: var(--bg-hover);
}

.lens-drag-area {
  border: 2px dashed var(--border-color);
  border-radius: 20px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.lens-drag-area.drag-over {
  background-color: var(--bg-hover);
  border-color: var(--blue-accent);
}

.lens-drag-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lens-upload-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.lens-drag-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.lens-browse-link {
  color: var(--blue-accent);
  font-weight: 500;
}

.lens-browse-link:hover {
  text-decoration: underline;
}

/* Scanner screen layout */
.lens-scan-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
}

.lens-image-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lens-image-wrapper img {
  max-width: 100%;
  max-height: 300px;
  display: block;
}

/* Pulsing scanner laser line */
.lens-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--blue-accent), transparent);
  box-shadow: 0 0 8px var(--blue-accent);
  animation: laserScan 2.5s infinite linear;
}

/* Scanning glowing dots */
.lens-scan-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--blue-accent);
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  opacity: 0;
}

.dot-1 {
  top: 30%;
  left: 45%;
  animation: pulseDot 2s infinite ease-out 0.2s;
}

.dot-2 {
  top: 60%;
  left: 25%;
  animation: pulseDot 2s infinite ease-out 0.8s;
}

.dot-3 {
  top: 45%;
  left: 70%;
  animation: pulseDot 2s infinite ease-out 1.4s;
}

.lens-scanning-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}


/* ================= KEYFRAMES & ANIMATIONS ================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseWave {
  0% {
    transform: scale(1);
    opacity: 0.25;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes laserScan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

@keyframes pulseDot {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 10px var(--blue-accent);
  }
  100% {
    transform: scale(0.6);
    opacity: 0;
  }
}


/* ================= RESPONSIVE LAYOUTS ================= */
@media (max-width: 1024px) {
  .results-nav-tabs {
    padding-left: 40px;
  }
  .results-main {
    padding-left: 40px;
  }
}

@media (max-width: 768px) {
  /* Homepage */
  .home-header {
    height: 50px;
    padding: 0 12px;
  }
  .home-main {
    padding-bottom: 60px;
  }
  .logo-container {
    margin-bottom: 20px;
  }
  .google-logo {
    max-width: 180px;
  }
  .search-buttons-row {
    margin-top: 20px;
  }
  .languages-bar {
    margin-top: 20px;
  }
  
  /* Results view */
  .results-header-top {
    padding: 0 12px;
    gap: 12px;
  }
  .google-logo-small {
    width: 60px;
    height: 20px;
  }
  .results-nav-tabs {
    padding-left: 12px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
  }
  .results-nav-tabs::-webkit-scrollbar {
    display: none; /* Safari / Chrome */
  }
  .results-main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .results-layout-container {
    flex-direction: column;
    gap: 30px;
  }
  .knowledge-panel {
    width: 100%;
  }
  .results-pagination {
    font-size: 24px;
  }
  
  /* Footer */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .footer-bottom-left, .footer-bottom-right {
    justify-content: center;
    gap: 20px;
  }
}

/* ================= LOGIN VIEW STYLES ================= */
.login-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--login-bg);
  color: var(--login-text);
  font-family: 'Roboto', sans-serif;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.login-view.hidden {
  display: none !important;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1040px;
  min-height: 100vh;
  padding: 40px 24px;
  box-sizing: border-box;
}

.login-card {
  background: var(--login-card-bg);
  border-radius: 28px;
  padding: 40px;
  width: 100%;
  max-width: 840px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  box-sizing: border-box;
  margin-top: auto;
  margin-bottom: auto;
  border: var(--login-card-border);
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.login-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.login-logo {
  margin-bottom: 24px;
  cursor: pointer;
}

.login-logo svg {
  display: block;
}

.login-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--login-text);
  margin: 0 0 16px 0;
  line-height: 44px;
}

.login-subtitle {
  font-size: 16px;
  color: var(--login-text);
  margin: 0;
  font-weight: 400;
}

.login-right-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Material Outline Input styling */
.login-right-panel .input-container {
  position: relative;
  width: 100%;
  margin-bottom: 9px;
}

.login-right-panel .input-container input {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid var(--login-input-border);
  border-radius: 4px;
  color: var(--login-text);
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-speed);
}

.login-right-panel .input-container input:focus {
  border-color: var(--login-link);
  border-width: 2px;
  padding: 15px; /* adjust for border-width to prevent jumping */
}

.login-right-panel .input-container label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--login-text-secondary);
  transition: 0.2s ease all;
  pointer-events: none;
  background-color: var(--login-card-bg);
  padding: 0 4px;
}

.login-right-panel .input-container input:focus ~ label,
.login-right-panel .input-container input:not(:placeholder-shown) ~ label {
  top: 0;
  font-size: 12px;
  color: var(--login-link);
}

.forgot-email-link {
  color: var(--login-link);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  align-self: flex-start;
  margin-bottom: 32px;
}

.forgot-email-link:hover {
  text-decoration: underline;
}

.visitor-notice {
  font-size: 14px;
  color: var(--login-notice-text);
  line-height: 20px;
  margin: 0 0 40px 0;
}

.visitor-link {
  color: var(--login-link);
  text-decoration: none;
  font-weight: 500;
}

.visitor-link:hover {
  text-decoration: underline;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.password-actions {
  justify-content: space-between;
  margin-top: 48px;
}

/* User Email Pill */
.user-email-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--login-card-border);
  border-radius: 16px;
  padding: 4px 8px 4px 4px;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.user-email-pill:hover {
  background-color: rgba(138, 180, 248, 0.04);
}

.user-email-pill .profile-icon {
  color: var(--login-text-secondary);
  margin-right: 8px;
}

.user-email-pill .user-email-text {
  font-size: 14px;
  color: var(--login-text);
  font-weight: 500;
  margin-right: 6px;
}

.user-email-pill .dropdown-icon {
  color: var(--login-text-secondary);
}

/* Show password wrapper */
.show-password-wrapper {
  display: flex;
  align-items: center;
  margin-top: 12px;
  cursor: pointer;
}

.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--login-text-secondary);
  border-radius: 2px;
  margin-right: 12px;
  cursor: pointer;
  position: relative;
  outline: none;
}

.custom-checkbox:checked {
  background-color: var(--login-link);
  border-color: var(--login-link);
}

.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  font-size: 14px;
  color: var(--login-text);
  cursor: pointer;
  user-select: none;
}

.login-password-panel {
  justify-content: flex-start;
}

.login-password-panel .forgot-email-link {
  margin-bottom: 0;
}

.btn-text-action {
  background: transparent;
  border: none;
  color: var(--login-link);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 20px;
  transition: background-color var(--transition-speed);
}

.btn-text-action:hover {
  background-color: rgba(168, 199, 250, 0.08);
}

.btn-primary-action {
  background-color: var(--login-btn-bg);
  border: none;
  color: var(--login-btn-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 24px;
  border-radius: 100px;
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-primary-action:hover {
  background-color: var(--login-btn-hover);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Login footer styles */
.login-footer {
  width: 100%;
  max-width: 840px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0 0;
  font-size: 12px;
  color: var(--login-text-secondary);
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color var(--transition-speed);
}

.lang-selector:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.login-footer-right {
  display: flex;
  gap: 16px;
}

.login-footer-right a {
  color: var(--login-text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color var(--transition-speed);
}

.login-footer-right a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Responsiveness */
@media (max-width: 768px) {
  .login-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
    border-radius: 0;
    background: transparent;
    border: none;
  }
  .login-container {
    padding: 0;
    justify-content: center;
  }
  .login-footer {
    padding: 16px 24px;
  }
}


