/* Styles globaux du layout, sans dépendance aux données Blade. */
.bottom-toolbar-tool-container i {
    margin-bottom: 10px !important;
}

.bottom-toolbar-tool-container a {
    padding-top: 5px !important;
}

.bottom-toolbar-tool-container .toolbar-item-value {
    bottom: 7px !important;
}

/* Modale d’authentification. Ces règles ne s’appliquent que si elle est présente. */
#auth_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999999;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

#auth_modal .overlay-content {
    position: relative;
    width: auto !important;
    max-width: 100%;
    display: inline-block;
    background: transparent;
    padding: 0;
    margin: 40px auto;
    overflow: visible !important;
    max-height: none !important;
    border-radius: 0;
}

#auth_modal .auth-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6B7280;
    transition: all 0.2s ease;
    z-index: 10;
}

#auth_modal .auth-close-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: scale(1.1);
}

@media (max-width: 500px) {
    #auth_modal {
        padding: 10px;
    }

    #auth_modal .login-card,
    #auth_modal .register-card {
        box-sizing: border-box;
        min-height: 100vh;
        min-height: 100dvh;
    }

    #auth_modal .overlay-content {
        margin: 20px auto;
        width: 100% !important;
    }

    #auth_modal .auth-close-btn {
        top: 10px;
        right: 10px;
    }
}
