/*
Theme Name: YugPath
Description: Educational Platform with Coin Economy
Version: 1.0.3
Text Domain: yugpath
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
:root{--primary:#2563eb;--muted:#64748b;--bg:#f8fafc;--text-dark:#0f172a}
*{box-sizing:border-box}body{font-family:Inter,system-ui,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text-dark);margin:0}

/* **[FIX]** Add rule to prevent background scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

.eduapp-container{max-width:1100px;margin:0 auto;min-height:100vh;padding-bottom:80px}
/* Top & Bottom Bars */
.eduapp-top-bar{position:fixed;top:0;left:0;right:0;height:56px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;padding:0 16px;z-index:1000}

/* Top Bar Buttons Improvement */
.eduapp-menu-btn, .eduapp-notification-btn {
    width: 44px; 
    height: 44px;
    padding: 0;
    margin: 0 4px; 
    border: none;
    background: transparent;
    font-size: 24px; 
    cursor: pointer;
    display: flex; 
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}
.eduapp-search-bar {
    flex-grow: 1; 
    padding: 8px 12px; 
    margin: 0 8px; 
    border-radius: 20px; 
    border: 1px solid #e2e8f0;
    height: 38px; 
}


/* Updated Bottom Nav Styles */
.eduapp-bottom-nav{
    position:fixed;bottom:0;left:0;right:0;
    height:60px; 
    background:#fff;border-top:1px solid #e2e8f0;
    display:flex;justify-content:space-around;align-items:center;
    z-index:1000;
    box-shadow: 0 -2px 5px rgba(2,6,23,0.04); 
    padding: 4px 0;
}
.eduapp-nav-item {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted); 
    flex: 1; 
    font-weight: 500;
    transition: color 0.2s ease, transform 0.1s;
    user-select: none;
    padding: 2px 0;
}
.eduapp-nav-item:active {
    transform: scale(0.95); 
}
.eduapp-nav-item span {
    font-size: 20px; 
    line-height: 1;
    margin-bottom: 2px;
}
.eduapp-nav-item > div {
    font-size: 10px; 
    line-height: 1;
    font-weight: 600;
}
.eduapp-nav-item.active {
    color: var(--primary); 
}

/* Main content */
.eduapp-main-content{margin-top:72px;margin-bottom:72px;padding:16px}
.eduapp-section{background:#fff;border-radius:12px;padding:16px;margin-bottom:16px;box-shadow:0 1px 3px rgba(2,6,23,0.06)}
.eduapp-section-title{font-size:18px;font-weight:600;margin-bottom:12px;color:var(--text-dark)}
.eduapp-coin-balance{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;padding:6px 10px;border-radius:20px;font-weight:600;display:inline-flex;align-items:center}
.eduapp-circular-buttons{display:flex;gap:12px;overflow-x:auto;padding:10px 0;margin-bottom:12px}
.eduapp-circular-btn{width:66px;height:66px;border-radius:50%;background:#fff;border:1px solid #e2e8f0;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer}
.eduapp-btn{padding:10px 14px;border-radius:8px;border:0;cursor:pointer}
.eduapp-btn-primary{background:var(--primary);color:#fff}
.eduapp-btn-secondary{background:#f1f5f9;color:#475569}

/* **[FIX]** Side Menu Styles from navigation-drawer.php */
.eduapp-side-menu {
    position: fixed;
    top: 0;
    bottom: 0; /* height: 100vh के बजाय top/bottom का उपयोग करें */
    left: -320px; /* Hidden state */
    width: 320px;
    background: #fff;
    z-index: 1002; /* Top bar (1000) और overlay (1001) से ऊपर */
    overflow-y: auto;
    transition: left 0.3s ease-out;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}
.eduapp-side-menu.active {
    left: 0; /* Visible state */
}

/* Side Menu Content Styling */
.eduapp-side-menu-content{padding:16px}
.eduapp-profile-header{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f1f5f9;margin-bottom:12px}
.eduapp-avatar{width:56px;height:56px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;box-shadow:0 2px 4px rgba(37, 99, 235, 0.4)}
.eduapp-user-info h3{margin:0;font-size:16px;font-weight:700}
.eduapp-user-info p{margin:0;color:var(--muted);font-size:13px}
.eduapp-coin-box{display:flex;justify-content:space-between;align-items:center;padding:12px 0;margin-bottom:16px}
.eduapp-side-nav{border-top:1px solid #f1f5f9;padding-top:8px;padding-bottom:16px;margin-bottom:16px}
.eduapp-nav-link{display:flex;align-items:center;gap:12px;padding:10px 0;text-decoration:none;color:var(--text-dark);transition:background-color .2s}
.eduapp-nav-icon{font-size:20px;width:32px;text-align:center}
.eduapp-nav-text{flex:1}
.eduapp-nav-desc{margin:0;font-size:12px;color:var(--muted)}


/* Overlay for Side Menu */
.eduapp-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1001; 
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}
.eduapp-side-menu.active ~ .eduapp-menu-overlay {
    opacity: 1;
    visibility: visible;
}

@media (max-width:768px){.eduapp-grid-3{grid-template-columns:1fr}}
