:root {
    --primary-color: #3b82f6;
    --secondary-color: #10b981;
    --background-color: #f9fafb;
    --text-color: #1f2937;
    --container-bg-color: #ffffff;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding-top: 70px; /* Make space for fixed navbar */
}

/* Navbar */
.navbar {
    background-color: var(--container-bg-color);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: var(--card-shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-item a:hover {
    color: var(--primary-color);
}


/* Main Container */
.container {
    background-color: var(--container-bg-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 2rem 3rem;
    text-align: center;
    width: 90%;
    max-width: 700px;
    margin: 2rem auto;
}

.content-page {
    text-align: left;
    max-width: 900px;
}

.content-page h1, .content-page h2 {
    color: var(--primary-color);
}
.content-page h2 {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-top: 2rem;
}
.content-page p, .content-page li {
    line-height: 1.8;
    color: #374151;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.upload-label {
    background-image: linear-gradient(to right, var(--primary-color), #60a5fa);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 10px rgba(59, 130, 246, 0.3);
}

#image-preview {
    border-radius: 12px;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#result-container {
    margin-top: 2rem;
}

#result-container h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.result-item {
    background-color: #ecfdf5;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item.highlight {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

#loader {
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid var(--primary-color);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

.ad-container {
    margin: 2rem auto;
    text-align: center;
    max-width: 728px; /* Typical leaderboard ad size */
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background-color: var(--container-bg-color);
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}
