/* Math Game Styles - Production Ready CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Noto Sans Lao', sans-serif;
    height: 100%;
}

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

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Grid System */
.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Flexbox */
.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

/* Spacing */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-25 {
    padding-left: 1.5625rem;
    padding-right: 1.5625rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.m-2 {
    margin: 0.5rem;
}

.m-4 {
    margin: 1rem;
}

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

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

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

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.mx-4 {
    margin-left: 1rem;
    margin-right: 1rem;
}

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

/* Text */
.text-center {
    text-align: center;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

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

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

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

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-8xl {
    font-size: 6rem;
    line-height: 1;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

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

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

/* Colors */
.text-white {
    color: white;
}

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

.text-gray-700 {
    color: #374151;
}

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

.text-blue-600 {
    color: #2563eb;
}

.text-green-700 {
    color: #15803d;
}

.text-green-800 {
    color: #166534;
}

.text-purple-600 {
    color: #9333ea;
}

.text-yellow-600 {
    color: #ca8a04;
}

/* Background Colors */
.bg-white {
    background-color: white;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-green-500 {
    background-color: #10b981;
}

.bg-purple-500 {
    background-color: #8b5cf6;
}

.bg-yellow-500 {
    background-color: #eab308;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-gray-500 {
    background-color: #6b7280;
}

/* Background Gradients */
.bg-gradient-to-br {
    background: linear-gradient(to bottom right, #60a5fa, #8b5cf6, #ec4899);
}

.bg-gradient-to-r {
    background: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}

/* Hover States */
.bg-blue-500:hover,
.hover\:bg-blue-600:hover {
    background-color: #2563eb;
}

.bg-green-500:hover,
.hover\:bg-green-600:hover {
    background-color: #059669;
}

.bg-purple-500:hover,
.hover\:bg-purple-600:hover {
    background-color: #7c3aed;
}

.bg-yellow-500:hover,
.hover\:bg-yellow-600:hover {
    background-color: #ca8a04;
}

.bg-red-500:hover,
.hover\:bg-red-600:hover {
    background-color: #dc2626;
}

.bg-gray-500:hover,
.hover\:bg-gray-600:hover {
    background-color: #4b5563;
}

/* Rounded Corners */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Borders */
.border-2 {
    border-width: 2px;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.focus\:border-blue-500:focus {
    border-color: #3b82f6;
}

.focus\:outline-none:focus {
    outline: 0;
}

/* Width and Height */
.w-full {
    width: 100%;
}

.h-4 {
    height: 1rem;
}

.min-h-screen {
    min-height: 100vh;
}

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

/* Position */
.fixed {
    position: fixed;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-10 {
    top: 2.5rem;
}

.top-20 {
    top: 5rem;
}

.bottom-10 {
    bottom: 2.5rem;
}

.bottom-20 {
    bottom: 5rem;
}

.left-10 {
    left: 2.5rem;
}

.left-20 {
    left: 5rem;
}

.right-10 {
    right: 2.5rem;
}

.right-20 {
    right: 5rem;
}

.top-20px {
    top: 20px;
}

.right-20px {
    right: 20px;
}

/* Z-index */
.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Opacity and Effects */
.bg-black\/50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.bg-white\/95 {
    background-color: rgba(255, 255, 255, 0.95);
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.drop-shadow-lg {
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
}

.drop-shadow {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
}

/* Transitions */
.transition-all {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-500 {
    transition-duration: 500ms;
}

/* Pointer Events */
.pointer-events-none {
    pointer-events: none;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

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

/* Game Button Styles */
.game-button {
    transition: all 0.3s ease;
    transform: scale(1);
    cursor: pointer;
    border: none;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.game-button:hover {
    transform: scale(1.05);
}

.game-button:active {
    transform: scale(0.95);
}

/* Input Styles */
input, select {
    font-family: inherit;
}

input[type="text"],
input[type="date"],
input[type="number"],
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Responsive Design */
@media (min-width: 768px) {
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

/* Custom Background */
body {
    background: linear-gradient(135deg, #60a5fa 0%, #8b5cf6 50%, #ec4899 100%);
    min-height: 100vh;
}

/* Progress Bar */
.progress-bar-fill {
    background: linear-gradient(to right, #10b981, #3b82f6);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}
