/* --- APP CARDS (Folders) --- */
.app-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid #f0f0f0 !important;
}

.app-card:hover, .app-card:active {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0 !important;
}

.folder-icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.1));
}

.app-card .badge {
    border-color: #dee2e6 !important;
    background-color: #f8f9fa !important;
}

/* --- STATS CARDS (Bottom) --- */
.stat-card {
    border-radius: 16px;
    transition: transform 0.2s;
}

.stat-card:active {
    transform: scale(0.97);
}

.stat-icon-bg {
    pointer-events: none;
}

.stat-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Online Heartbeat Pulse Effect */
.pulse-icon {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- FOOTER & STATS BUTTON --- */
.app-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.social-icon {
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 0.7;
}

/* ==========================================
   STATISTICS BUTTON (PRO & MOTION EFFECTS)
   ========================================== */
.stats-app-btn {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(42, 82, 152, 0.15); /* A tlang rawng duk raih */
    padding: 14px 22px;
    border-radius: 16px;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 350px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-decoration: none;
    
    /* Motion Effect 1: A rawn phu euh euh (Float) char char ang */
    animation: gentleFloat 4s ease-in-out infinite;
    /* Hover atana in-buatsaihna */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Motion Effect 2: Tle (Shine) tlan kual char char */
.stats-app-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: buttonShine 4s infinite; /* Second 4 danah a rawn tle phei fua fua ang */
}

/* Mouse in a tawh (Hover) huna a awm dan tur */
.stats-app-btn:hover {
    transform: translateY(-5px) scale(1.02); /* A rawn lian deuh hlek ang */
    box-shadow: 0 12px 25px rgba(42, 82, 152, 0.15); /* A hnuai thim (Shadow) a lian ang */
    border-color: rgba(42, 82, 152, 0.3);
}

/* Icon awmna Bawm (Icon Box) */
.stats-app-btn .icon-box {
    background: linear-gradient(135deg, #070ab1, #0915c0); /* Rawng eng mawi tak gradient */
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4); /* Icon hnungah shadow eng a chhuak ang */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mouse in a tawh huna Icon lo vir deuh zawk */
.stats-app-btn:hover .icon-box {
    transform: rotate(10deg) scale(1.1);
}

/* --- ANIMATION KEYFRAMES (Motion siam tu) --- */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes buttonShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}