:root {
    --primary-color: #4285F4;
    --secondary-color: #34A853;
    --accent-color: #FBBC05;
    --danger-color: #EA4335;
    --light-gray: #f8f9fa;
    --dark-gray: #5f6368;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Roboto', Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    line-height: 1.6;
    color: #202124;
    background-color: #fff;
  }
  
  .header {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .header h1 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  
  .header p {
    color: var(--dark-gray);
    font-size: 16px;
  }
  
  .card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
  }
  
  input[type="text"], textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.3s;
  }
  
  input[type="text"]:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
  }
  
  .helper-text {
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 5px;
  }
  
  button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #3367d6;
  }
  
  #loading-indicator {
    display: none;
    text-align: center;
    margin: 30px 0;
  }
  
  .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  #error-message {
    display: none;
    color: var(--danger-color);
    margin: 20px 0;
    padding: 15px;
    background-color: #ffebee;
    border-radius: 4px;
    border-left: 4px solid var(--danger-color);
  }
  
  #results-section {
    display: none;
    margin-top: 40px;
  }
  
  #results-section h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 400;
    font-size: 24px;
  }
  
  .keyword-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: var(--shadow);
  }
  
  .keyword-table th, .keyword-table td {
    border: 1px solid #eee;
    padding: 12px 15px;
    text-align: left;
  }
  
  .keyword-table th {
    background-color: var(--light-gray);
    font-weight: 500;
    color: var(--dark-gray);
  }
  
  .keyword-table tr:nth-child(even) {
    background-color: var(--light-gray);
  }
  
  .competition {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
  }
  
  .competition.high {
    background-color: #fce8e6;
    color: var(--danger-color);
  }
  
  .competition.medium {
    background-color: #fef7e0;
    color: #f9ab00;
  }
  
  .competition.low {
    background-color: #e6f4ea;
    color: var(--secondary-color);
  }
  
  .export-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .export-btn:hover {
    background-color: #2d9548;
  }
  
  .footer {
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
    color: var(--dark-gray);
  }
  
  .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .trend-container {
    width: 100%;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
    position: relative;
    padding: 5px;
  }
  
  .trend-line {
    position: relative;
    height: 100%;
    width: 100%;
  }
  
  .trend-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  
  .trend-line-segment {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    z-index: 1;
  }
  
  .trend-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  
  /* Add grid lines for better readability */
  .trend-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 0;
  }
  
  /* Date picker styles */
  .date-range-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .date-picker-input {
    flex-grow: 1;
    min-width: 175px;
  }
  
  /* Override some flatpickr styles to match our design */
  .flatpickr-calendar {
    box-shadow: var(--shadow);
    border-radius: 8px;
  }
  
  .flatpickr-day.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .flatpickr-day.selected:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .flatpickr-day:hover {
    background: var(--light-gray);
  }
  
  @media (max-width: 768px) {
    body {
      padding: 20px 15px;
    }
    
    .card {
      padding: 20px 15px;
    }
    
    .date-range-container {
      flex-direction: column;
      gap: 10px;
    }
  }

  /* Authentication header styles */
.auth-header {
  background-color: var(--light-gray);
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.user-info {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 14px;
  color: var(--dark-gray);
}

.logout-btn {
  color: var(--primary-color);
  text-decoration: none;
  margin-left: 10px;
  font-weight: 500;
}

.logout-btn:hover {
  text-decoration: underline;
}