/* ==========================================
   MOBILE.CSS - Design Responsif
   ========================================== */

/* Gestion d'affichage Bureau/Mobile par défaut */
.hidden-desktop { display: none; }

@media screen and (max-width: 850px) {
    
    .hidden-desktop { display: flex; }
    .hidden-mobile { display: none !important; }

    #main-layout, .controls {
        margin-right: 0 !important;
    }

    #main-layout {
	padding: 10px;
	padding-bottom: 30px;
	display:flex;
	flex-direction:column;
	gap: 20px;
    }

    #display {
	display:flex;
	flex-direction:column;
	align-items: stretch;
	gap: 20px;
    }

    .table-box {
	width:100%;
    }

    .table-box .info-list {
	    display:flex;
	    flex-direction:row;
	    justify-content:space-evenly;
    }

    .lobby-dashboard {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    #side-panel {
        width: 100%;
        transform: translateX(100%);
        box-shadow: -5px 0 25px rgba(0,0,0,0.8);
    }
    
    #side-panel.mobile-open {
        transform: translateX(0);
    }

    #mobile-sidebar-toggle {
        position: fixed;
        top: 5px;
        right: 5px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--accent-blue);
        color: var(--text-black);
        border: 2px solid var(--border-white);
        box-shadow: 0 4px 15px var(--shadow-heavy);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 90;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    #mobile-sidebar-toggle:active {
        transform: scale(0.9);
    }

    .notification-dot {
        position: absolute;
        top: 0;
        right: 0;
        width: 15px;
        height: 15px;
        background-color: var(--accent-red);
        border: 2px solid var(--border-white);
        border-radius: 50%;
        animation: pulse 1s infinite;
    }

    .close-sidebar-btn {
        background: var(--bg-transparent);
        border: none;
        color: var(--text-dim);
        font-size: 1.2rem;
        cursor: pointer;
        padding: 5px;
    }
    
    .close-sidebar-btn:hover {
        color: var(--text-white);
    }

    .builder-container {
        flex-direction: column;
        gap: 10px;
    }
    .action-builder {
        min-height: auto;
        flex-wrap: wrap;
    }

    .builder-slot {
        flex: 1 1 50%;
        border-bottom: 1px solid #1a1a1a;
    }
    #clear-btn {
        flex: auto;
        width: 100%;
    }
}
