/* Legacy page styles (pages not moved to the new design yet).
 * Loaded only by templates/base.html and scoped to main.legacy-main, so they
 * don't touch the new header, footer or redesigned pages (app.css). */
main.legacy-main {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: normal;
}

/* Navigation */
.legacy-main nav {
    background: #f8f9fa;
    padding: 1rem;
    margin: -20px -20px 20px -20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.legacy-main nav a {
    color: #1a73e8;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.legacy-main nav a:hover {
    background: #e8f0fe;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .legacy-main nav {
        margin: -10px -10px 15px -10px;
        padding: 0.8rem;
    }
    
    .legacy-main nav a {
        padding: 0.5rem 0.8rem;
        margin: 0 0.3rem;
        font-size: 0.95rem;
    }
}

/* Safe Search Toggle */
.search-options {
    margin: 10px 0;
    text-align: center;
}

.safe-search-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.safe-search-toggle input[type="checkbox"] {
    margin-right: 5px;
}

.safe-search-toggle span {
    user-select: none;
}

/* Search Results Styling */
.results {
    margin-top: 20px;
}

.result {
    margin-bottom: 30px;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.result h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.result h3 a {
    color: #1a0dab;
    text-decoration: none;
}

.result h3 a:hover {
    text-decoration: underline;
}

.result .url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 5px;
}

.result .snippet {
    color: #545454;
    font-size: 14px;
    line-height: 1.4;
}

/* Highlighted search terms */
.snippet mark {
    background-color: #ffeb3b;
    color: #000;
    font-weight: bold;
    padding: 0 2px;
}

/* Query suggestions */
.suggestion {
    background-color: #f0f7ff;
    border: 1px solid #d0e3f0;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 15px;
}

.suggestion a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

.suggestion a:hover {
    text-decoration: underline;
}

/* Progressive Search Toggle */
.search-options {
    margin-top: 15px;
    text-align: center;
}

.progressive-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #1a73e8;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.2s ease;
}

.progressive-link:hover {
    background-color: #1a73e8;
    color: white;
}

.beta-tag {
    background-color: #ff6b6b;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: super;
    font-weight: bold;
}

.search-mode-toggle {
    margin: 10px 0;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #1a73e8;
    text-decoration: underline;
}
.search-container {
    text-align: center;
    margin-top: 100px;
}
.search-box {
    width: 80%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.search-button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.admin-nav {
  background: #f8f9fa;
  padding: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #dee2e6;
}

.admin-nav a {
  margin-right: 1rem;
  color: #495057;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.admin-nav a:hover {
  color: #228be6;
}

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

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #228be6;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}