/* --- DASHBOARD MOBILE FIXES --- */
@media (max-width: 768px) {
  body {
    overflow: auto !important; /* Force allow scroll */
    overflow-x: hidden !important;
  }
  
  .sidebar-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(4px);
    z-index: 6500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }

  .sidebar {
    z-index: 7000 !important;
    box-shadow: 20px 0 50px rgba(0,0,0,0.5);
  }
}

/* --- HIKARI-BOT (VIRTUAL MASCOT) --- */
.virtual-pet {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    cursor: pointer;
    z-index: 8000;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatPet 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes floatPet {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.virtual-pet:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.6);
}

.pet-body {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50% 50% 45% 45%;
    position: relative;
    overflow: hidden;
}

.pet-eye {
    width: 8px;
    height: 8px;
    background: #0F172A;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    transition: transform 0.1s ease-out;
}

.pet-eye.left { left: 8px; }
.pet-eye.right { right: 8px; }

.pet-mouth {
    width: 12px;
    height: 6px;
    border: 2px solid #0F172A;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.pet-bubble {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    padding: 12px 18px;
    border-radius: 18px 18px 0 18px;
    width: 220px;
    color: #0F172A;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pet-bubble.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .virtual-pet {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    .pet-body { width: 34px; height: 34px; }
    .pet-bubble { width: 170px; font-size: 0.8rem; right: 10px; bottom: 70px; }
}
