* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: arial, sans-serif;
  font-size: 14px;
  color: #202124;
  background: #fff;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

.google-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.google-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px 20px;
  gap: 15px;
}

.header-link {
  color: rgba(0, 0, 0, 0.87);
  font-size: 13px;
  padding: 0 5px;
}

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

.apps-icon, .profile-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5f6368;
  font-size: 16px;
  border-radius: 50%;
}

.apps-icon:hover, .profile-icon:hover {
  background-color: rgba(60, 64, 67, 0.08);
}

.google-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-top: -100px;
}

.google-logo {
  margin-bottom: 30px;
}

.logo-text {
  font-size: 90px;
  font-weight: 400;
  color: #4285f4;
  letter-spacing: -2px;
  font-family: 'Product Sans', arial, sans-serif;
}

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

.search-box-wrapper {
  width: 100%;
  max-width: 584px;
  height: 44px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 30px;
  position: relative;
}

.search-box-wrapper:hover {
  box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
  border-color: rgba(223, 225, 229, 0);
}

.search-box-wrapper:focus-within {
  box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
  border-color: rgba(223, 225, 229, 0);
}

.search-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
  font-size: 16px;
  margin-right: 13px;
}

.google-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.87);
  background: transparent;
  height: 100%;
}

.google-buttons {
  display: flex;
  gap: 11px;
}

.google-button {
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  font-family: arial, sans-serif;
  font-size: 14px;
  margin: 11px 4px;
  padding: 0 16px;
  line-height: 27px;
  height: 36px;
  min-width: 54px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.google-button:hover {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  border: 1px solid #dadce0;
  color: #202124;
}

.google-button:active {
  border: 1px solid #4285f4;
}

.google-footer {
  background: #f2f2f2;
  border-top: 1px solid #dadce0;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
  color: #70757a;
}

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

.footer-left a, .footer-right a {
  color: #70757a;
}

.google-results {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.results-header {
  display: flex;
  align-items: center;
  padding: 6px 20px;
  border-bottom: 1px solid #ebebeb;
  flex-wrap: wrap;
  gap: 20px;
}

.results-logo {
  min-width: 120px;
}

.logo-link {
  display: inline-block;
  padding: 4px 8px;
  margin-left: -8px;
}

.logo-text-small {
  font-size: 20px;
  font-weight: 400;
  color: #4285f4;
  font-family: 'Product Sans', arial, sans-serif;
}

.results-search-form {
  flex: 1;
  min-width: 200px;
  max-width: 692px;
}

.results-search-box {
  width: 100%;
  height: 44px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #fff;
}

.results-search-box:hover {
  box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
  border-color: rgba(223, 225, 229, 0);
}

.results-search-box:focus-within {
  box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
  border-color: rgba(223, 225, 229, 0);
}

.search-icon-small {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
  font-size: 16px;
  margin-right: 13px;
}

.results-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.87);
  background: transparent;
  height: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 200px;
  justify-content: flex-end;
  min-height: 60px;
}

.results-tabs {
  display: flex;
  padding: 0 20px;
  border-bottom: 1px solid #ebebeb;
  gap: 30px;
  overflow-x: auto;
}

.tab {
  padding: 12px 0;
  color: #5f6368;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.tab:hover {
  color: #202124;
}

.tab.active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}

.results-stats {
  padding: 0 20px;
  margin-top: 10px;
  color: #70757a;
  font-size: 14px;
}

.results-content {
  padding: 0 20px;
  max-width: 652px;
  margin: 0 auto;
  width: 100%;
}

.no-results {
  padding: 40px 20px;
  text-align: center;
  color: #70757a;
}

.no-results pre {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
  text-align: left;
  display: inline-block;
}

.gcse-searchresults-only {
  margin-top: 20px;
}

.gsc-control-cse {
  font-family: arial, sans-serif;
  font-size: 14px;
}

.gsc-result {
  padding: 20px 0;
  border-bottom: 1px solid #ebebeb;
}

.gsc-result:last-child {
  border-bottom: none;
}

.gsc-result .gs-title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 3px;
}

.gsc-result .gs-title a {
  color: #1a0dab;
  text-decoration: none;
}

.gsc-result .gs-title a:visited {
  color: #609;
}

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

.gsc-result .gs-snippet {
  color: #4d5156;
  line-height: 1.58;
  margin-top: 5px;
}

.gsc-result .gs-visibleUrl {
  color: #006621;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 2px;
}

.results-footer {
  background: #f2f2f2;
  border-top: 1px solid #dadce0;
  padding: 15px 30px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
  color: #70757a;
}

/* Login Page Styles (keep existing) */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #fff;
}

.login-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  width: 100%;
  max-width: 400px;
}

.login-box h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 24px;
  color: #202124;
  font-weight: 400;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-weight: 400;
  color: #202124;
  font-size: 14px;
}

.form-group input {
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  outline: none;
  transition: border 0.2s;
  background: #fff;
}

.form-group input:focus {
  border-color: #1a73e8;
}

.error-message {
  background: #fce8e6;
  color: #c5221f;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 1rem;
}

.submit-button {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #1a73e8;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-button:hover {
  background: #1557b0;
}

/* Dashboard Styles (keep existing but simplify) */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #fff;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #ebebeb;
}

.dashboard-header h1 {
  font-size: 24px;
  color: #202124;
  font-weight: 400;
}

.logout-button {
  padding: 8px 16px;
  font-size: 14px;
  color: #1a73e8;
  background: transparent;
  border: 1px solid #dadce0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.logout-button:hover {
  background: #f8f9fa;
  border-color: #dadce0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid #dadce0;
  border-radius: 8px;
}

.stat-card h3 {
  font-size: 12px;
  color: #70757a;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card p {
  font-size: 32px;
  font-weight: 400;
  color: #1a73e8;
}

.table-container {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  overflow: hidden;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
}

.logs-table thead {
  background: #f8f9fa;
}

.logs-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  color: #202124;
  border-bottom: 1px solid #dadce0;
  font-size: 14px;
}

.logs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f3f4;
  color: #202124;
  font-size: 14px;
}

.logs-table tbody tr:hover {
  background: #f8f9fa;
}

.logs-table tbody tr:last-child td {
  border-bottom: none;
}

.view-headers-button {
  padding: 6px 12px;
  font-size: 13px;
  color: #1a73e8;
  background: transparent;
  border: 1px solid #dadce0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-headers-button:hover {
  background: #f8f9fa;
  border-color: #dadce0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
}

.pagination-button {
  padding: 8px 16px;
  font-size: 14px;
  color: #202124;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-button:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #dadce0;
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  padding: 8px 16px;
  color: #70757a;
  font-size: 14px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 20px;
  color: #202124;
  font-weight: 400;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #70757a;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-button:hover {
  background: #f1f3f4;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-body pre {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid #dadce0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .google-main {
    margin-top: -50px;
  }
  
  .logo-text {
    font-size: 60px;
  }
  
  .search-box-wrapper {
    max-width: 100%;
  }
  
  .google-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .google-button {
    width: 100%;
  }
  
  .results-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .results-search-form {
    max-width: 100%;
  }
  
  .footer-left, .footer-right {
    flex-direction: column;
    gap: 15px;
  }
  
  .google-footer, .results-footer {
    flex-direction: column;
    gap: 15px;
  }
}
