/* --- 1. Global Variables --- */
:root {
    --primary-color: #0e5b85;
    --accent-color: #FFC300;
    --text-light: #f8fafc;
    --dark-bg: #0f172a;
    --yellow-hover: #d69a18;
    --glass-bg: rgba(15, 23, 42, 0.9);
    --card-bg: rgba(255, 255, 255, 0.05);
}

/* --- 2. Base Styles --- */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Pyidaungsu', sans-serif;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* စာသားများကို ကော်ပီကူးမရအောင် ပိတ်ထားခြင်း */
.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- 3. Shared & Layout Styles --- */
.app-background,
.dashboard-body {
    background: linear-gradient(135deg, #794b07 0%, #16223d 50%, #a1670e 100%);
    min-height: 100vh;
    color: var(--text-light);
}

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 4. Main Page (Login/Register) Styles --- */
.main-page-body {
    background-color: #f0f2f5;
    color: #333;
}

.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.form-container {
    max-width: 450px;
    margin: -50px auto 50px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.input-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.input-field:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #eab308;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--yellow-hover);
    transform: translateY(-2px);
}

/* --- 5. Content Cards (Sentence Containers) --- */
.sentence-container {
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sentence-container:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(234, 179, 8, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.sentence-container:active {
    transform: scale(0.95);
}

.sentence-container.playing {
    background: var(--accent-color) !important;
    border-color: #000;
}

.sentence-container.playing span {
    color: #000 !important;
}

/* --- 6. Animations --- */
@keyframes slideInRight {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }

    to {
        transform: translateX(10);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(20);
        opacity: 1;
    }

    to {
        transform: translateX(50px);
        opacity: 0;
    }
}

.slide-right {
    opacity: 0;
    animation: slideInRight 0.6s ease-out forwards;
}

.slide-out {
    animation: slideOutRight 0.5s ease-in forwards;
}

/* Staggered Delay for Lessons */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* --- 7. Utilities --- */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.logo-container img {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo-container img {
    /* Logo ကို အမြဲတမ်း တစ်ဖြတ်ဖြတ် တောက်ပနေစေမည့် animation */
    filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.2));
}

.logo-container img:hover {
    filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.5));
}

/* ------------------- Footer ------------------- */
.social-footer {
    padding: 0px;
    background: rgba(255, 255, 255, 0.048);
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
}

iframe {
    border-radius: 8px;
    aspect-ratio: 16/9;
}

@keyframes pulse-soft {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.playing {
    animation: pulse-soft 0.8s infinite ease-in-out;
    border: 2px solid #facc15 !important;
    /* Yellow border */
    background-color: rgba(250, 204, 21, 0.1) !important;
}

/* ၂။ Search Panel (ညာဘက်ခြမ်း) */
/* Search Panel Animation Control */
#search-panel.open {
    transform: translateX(0);
    opacity: 1;
}