/* Base styles */
:root {
    --primary-color: #1d4ed8;
    --primary-hover: #1e40af;
    --secondary-color: #10b981;
    --text-color: #1f2937;
    --text-muted: #4b5563;
    --bg-color: #f9fafb;
    --white: #ffffff;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* Card styles */
.card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.card-header {
    background-color: #e0f2fe;
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.card-content {
    padding: 1.5rem;
}


/* Utility classes */
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.hidden { display: none; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Header styles */
header {
    border-bottom: 1px solid #e5e7eb;
}

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

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1rem;
}

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

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background-color: #f3f4f6;
}

/* Form styles */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--card-border);
    border-radius: 0.375rem;
    font-size: 1rem;
}

/* Utility classes */
.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-8 {
    margin-bottom: 2rem;
}


/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    min-width: 160px;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 0.375rem;
    padding: 0.5rem 0;
}

.dropdown-menu a, .dropdown-menu button {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    width: 100%;
}

.dropdown-menu a:hover, .dropdown-menu button:hover {
    background-color: #f3f4f6;
}

/* Quiz specific styles */
#optionsContainer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Vocabulary topics grid */
.grid {
    display: grid;
    gap: 1.5rem;
}


/* Image styles */
.object-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Text styles */
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-600 {
    color: #4b5563;
}

/* Responsive styles */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:w-1/2 { width: 50%; }
    .md\:p-8 { padding: 2rem; }
}

/* Footer styles */
footer {
    border-top: 1px solid #e5e7eb;
    background-color: #f3f4f6;
}
