:root {
    --pastel-purple: #c4b5fd;
    --pastel-pink: #f9a8d4;
    --pastel-blue: #93c5fd;
    --pastel-cream: #fef3c7;
    --pastel-lavender: #e9d5ff;
    --pastel-mint: #a7f3d0;
    --pastel-peach: #fecaca;
    --gradient-primary: linear-gradient(135deg, #c4b5fd 0%, #f9a8d4 50%, #93c5fd 100%);
    --gradient-soft: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 50%, #eff6ff 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(249,168,212,0.1) 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 8px 32px rgba(196, 181, 253, 0.15);
    --shadow-medium: 0 12px 40px rgba(196, 181, 253, 0.2);
    --shadow-large: 0 20px 60px rgba(196, 181, 253, 0.25);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    font-family: 'Kanit', 'Prompt', sans-serif;
}

body {
    background: var(--gradient-soft);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.dream-bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(196, 181, 253, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 168, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(147, 197, 253, 0.1) 0%, transparent 50%);
}

.dream-bg-pattern::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.dream-bg-pattern::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(249, 168, 212, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.glass-card-static {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.navbar-dreamora {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 181, 253, 0.2);
    padding: 0.75rem 0;
}

.navbar-dreamora .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-dreamora .nav-link {
    color: #6b7280;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.navbar-dreamora .nav-link:hover,
.navbar-dreamora .nav-link.active {
    color: #7c3aed;
    background: rgba(196, 181, 253, 0.15);
}

.hero-section {
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-search-box input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    padding-right: 160px;
    border: 2px solid rgba(196, 181, 253, 0.3);
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
}

.hero-search-box input:focus {
    border-color: var(--pastel-purple);
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.2);
}

.hero-search-box input::placeholder {
    color: #9ca3af;
}

.btn-dream {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 181, 253, 0.4);
}

.btn-dream:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 181, 253, 0.5);
    color: white;
}

.btn-dream-outline {
    background: transparent;
    color: #7c3aed;
    border: 2px solid var(--pastel-purple);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-dream-outline:hover {
    background: rgba(196, 181, 253, 0.15);
    color: #7c3aed;
}

.btn-dream-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.dream-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.dream-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    color: inherit;
}

.dream-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dream-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.dream-card .card-text {
    color: #6b7280;
    font-size: 0.9rem;
    flex-grow: 1;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 400;
    background: rgba(196, 181, 253, 0.2);
    color: #7c3aed;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    color: white;
}

.lucky-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0.25rem;
    box-shadow: 0 4px 15px rgba(196, 181, 253, 0.4);
}

.prediction-section {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(196, 181, 253, 0.15);
}

.prediction-section .section-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.ai-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1.5rem;
    border: 2px solid rgba(196, 181, 253, 0.3);
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

.ai-textarea:focus {
    border-color: var(--pastel-purple);
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.2);
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(196, 181, 253, 0.3);
    border-top-color: var(--pastel-purple);
    border-radius: 50%;
    animation: spin-slow 1s linear infinite;
}

.loading-text {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #6b7280;
}

.keyword-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    margin: 0.25rem;
    border-radius: var(--radius-xl);
    background: rgba(196, 181, 253, 0.15);
    color: #7c3aed;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(196, 181, 253, 0.2);
}

.keyword-tag:hover {
    background: rgba(196, 181, 253, 0.3);
    color: #7c3aed;
    transform: translateY(-1px);
}

.star-decoration {
    position: absolute;
    color: rgba(196, 181, 253, 0.4);
    animation: pulse-soft 3s ease-in-out infinite;
}

.footer-dreamora {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(196, 181, 253, 0.2);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-dreamora a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-dreamora a:hover {
    color: #7c3aed;
}

.entertainment-notice {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.5) 0%, rgba(253, 230, 138, 0.3) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: #92400e;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.admin-sidebar .nav-link {
    color: #6b7280;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(196, 181, 253, 0.15);
    color: #7c3aed;
}

.form-control-dreamora {
    border: 2px solid rgba(196, 181, 253, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control-dreamora:focus {
    border-color: var(--pastel-purple);
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.15);
}

.pagination .page-link {
    border: none;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    margin: 0 0.15rem;
}

.pagination .page-link:hover {
    background: rgba(196, 181, 253, 0.15);
    color: #7c3aed;
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    color: white;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-search-box input {
        padding-right: 1.5rem;
        padding-bottom: 4rem;
    }

    .hero-search-box .btn-dream {
        position: absolute;
        bottom: 8px;
        left: 8px;
        right: 8px;
        width: calc(100% - 16px);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .lucky-number {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease both;
}

.animate-fade-in-delay-1 {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 0.6s ease 0.3s both;
}
